OFFSET
0,2
COMMENTS
Is it a rule that in each dRRS[a(n)], distinct differences are {1,2,...,n}?
No more terms up to 2*10^5. - Michel Marcus, Mar 26 2020
a(17) > 2.4*10^7. a(18) <= 248834355, a(19) <= 190285095, a(20) <= 111546435. - Giovanni Resta, Apr 13 2020
FORMULA
a(n) = Min{x; A061498(x)=n}.
EXAMPLE
n=5, a(5)=105 because in dRRS[105]={1,2,4,3,2,....,1,5,...,2,1} five distinct terms[=consecutive residue-differences] occur, namely: {1,2,3,4,5}.
MATHEMATICA
gw[x_] := Table[GCD[w, x], {w, 1, x}] rrs[x_] := Flatten[Position[gw[x], 1]] dr[x_] := Delete[RotateLeft[rrs[x]]-rrs[x], -1] did[x_] := Length[Union[dr[x]]] t=Table[0, {25}]; Do[s=did[n]; If[s<258&&t[[s]]==0, t[[s]]=n], {n, 1, 100000}]; t
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Labos Elemer, Oct 09 2002
EXTENSIONS
a(8)-a(10) from Michel Marcus, Mar 25 2020
a(11)-a(16) from Giovanni Resta, Apr 13 2020
STATUS
approved