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”).

A085879
Smallest n-th power k^n == 1 (mod 10), where k>1.
0
11, 81, 1331, 81, 161051, 531441, 19487171, 6561, 2357947691, 3486784401, 285311670611, 531441, 34522712143931, 22876792454961, 4177248169415651, 43046721, 505447028499293771, 150094635296999121, 61159090448414546291, 3486784401, 7400249944258160101211, 984770902183611232881, 895430243255237372246531
OFFSET
1,1
FORMULA
For n==0 (mod 4), a(n) = 3^n; for n==1,3 (mod 4), a(n) = 11^n; for n==2 (mod 4), a(n)=9^n. - Max Alekseyev, Dec 06 2013
MATHEMATICA
snp[n_]:=Module[{k=2}, While[PowerMod[k, n, 10]!=1, k++]; k^n]; Array[snp, 30] (* Harvey P. Dale, Aug 07 2023 *)
PROG
(PARI) a(n) = [3, 11, 9, 11][n%4+1]^n
CROSSREFS
Sequence in context: A334340 A335332 A111334 * A239459 A197643 A261391
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Jul 07 2003
EXTENSIONS
Description corrected by Ray Chandler, Jul 08 2003
More terms from Ray Chandler, Jul 11 2003
STATUS
approved