OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
EXAMPLE
1234 is a term because GCD(1234,2341,3412,4123) = 1.
MAPLE
filter:= proc(n) local m, x, i, g;
m:= ilog10(n);
x:= n; g:= n;
for i from 1 to m do
x:= floor(x/10) + (x mod 10)*10^m;
g:= igcd(g, x);
if g = 1 then return true fi;
od;
false
end proc:
filter(1):= true:
select(filter, [$1..130]); # Robert Israel, Sep 02 2025
MATHEMATICA
A387356Q[k_] := GCD @@ Map[FromDigits, NestList[RotateLeft, #, Length[#] - 1] & [IntegerDigits[k]]] == 1;
Select[Range[200], A387356Q]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo Xausa, Aug 27 2025
STATUS
approved
