OFFSET
1,3
COMMENTS
For p >= 5 (n >= 3): multiplicative order of 12 mod prime(n). - Joerg Arndt, Nov 15 2014
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A246004(prime(n)).
EXAMPLE
For n=9, prime(9) = 23, 1/23 in base 12 is 0. 06316948421 06316948421 ..., which has period 11, so a(9) = 11.
MAPLE
with(numtheory):
a:= n-> `if`(n<3, 0, order(12, ithprime(n))):
seq(a(n), n=1..100); # Alois P. Heinz, Nov 16 2014
PROG
(PARI) /* nonzero terms only: */
forprime(p=5, 10^3, print1(znorder(Mod(12, p)), ", ")); \\ Joerg Arndt, Nov 15 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Chen, Nov 15 2014
STATUS
approved