OFFSET
1,4
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
MAPLE
A211242 := proc(n)
if n<= 2 then
0 ;
else
numtheory[order](6, ithprime(n)) ;
end if;
end proc:
seq(A211242(n), n=1..80) ; # R. J. Mathar, Jul 17 2024
MATHEMATICA
nn = 6; Table[If[Mod[nn, p] == 0, 0, MultiplicativeOrder[nn, p]], {p, Prime[Range[100]]}]
PROG
(GAP) A000040:=Filtered([1..350], IsPrime);;
(PARI) a(n, {base=6}) = my(p=prime(n)); if(base%p, znorder(Mod(base, p)), 0) \\ Jianing Song, May 13 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
T. D. Noe, Apr 11 2012
STATUS
approved