login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A129810
9^(9^9) mod n.
1
0, 1, 0, 1, 4, 3, 1, 1, 0, 9, 5, 9, 1, 1, 9, 9, 9, 9, 1, 9, 15, 5, 8, 9, 14, 1, 0, 1, 9, 9, 4, 9, 27, 9, 29, 9, 1, 1, 27, 9, 9, 15, 11, 5, 9, 31, 34, 9, 15, 39, 9, 1, 9, 27, 49, 1, 39, 9, 28, 9, 34, 35, 36, 9, 14, 27, 22, 9, 54, 29, 12, 9, 72, 1, 39, 1, 71, 27, 21, 9, 0, 9, 61, 57, 9, 11, 9, 49, 42
OFFSET
1,5
COMMENTS
Eventually constant: a(n) = 9^9^9 for all n > 9^9^9 ~ 4.28*10^369693099. - M. F. Hasler, Feb 24 2018
FORMULA
a(n) = 0 for all n = 3^k, 0 <= k <= 2*9^9; a(n) = 9^9^9 for all n > 9^9^9. - M. F. Hasler, Feb 24 2018
EXAMPLE
[9^(9^9)] mod 1 =0
[9^(9^9)] mod 2 =1
[9^(9^9)] mod 9 =0
[9^(9^9)] mod (3*387420489) =0
MATHEMATICA
Table[PowerMod[9, 9^9, n], {n, 1, 100}]
PROG
(PARI) a(n)=lift(Mod(9, n)^9^9) \\ Charles R Greathouse IV, Jul 02 2012
CROSSREFS
Cf. A081230, A214128 (6^6^6 mod n).
Sequence in context: A355401 A195596 A332054 * A016500 A211451 A371809
KEYWORD
nonn,easy
AUTHOR
Marvin Ray Burns, May 19 2007
STATUS
approved