OFFSET
1,6
LINKS
FORMULA
a(n) >= A345935(n).
MATHEMATICA
Table[Length@Select[Table[m=1; While[Mod[m!, k]!=0, m++]; m, {k, n}], #==(m=1; While[Mod[m!, n]!=0, m++]; m)&], {n, 100}] (* Giorgos Kalogeropoulos, Jul 03 2021 *)
PROG
(PARI)
up_to = 65537;
ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om, invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om, invec[i], (1+pt))); outvec; };
A002034(n) = if(1==n, n, my(s=factor(n)[, 1], k=s[#s], f=Mod(k!, n)); while(f, f*=k++); (k)); \\ After code in A002034.
v345934 = ordinal_transform(vector(up_to, n, A002034(n)));
A345934(n) = v345934[n];
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, Jul 02 2021
STATUS
approved