OFFSET
1,1
COMMENTS
Also, final digit of n-th superperfect number A019279(n), if there are no odd superperfect numbers.
LINKS
Landon Curt Noll, Mersenne Prime Digits.
FORMULA
a(1)=2. For n>1, if final digit of n-th Mersenne prime A000668(n) is equal to 1 then a(n)=6, otherwise a(n)=4.
EXAMPLE
a(5)=6 because the 5th even superperfect number A061652(5) is 4096 and the final digit of 4096 is 6.
a(34)=4 because the final digit of 34th Mersenne prime is 7. a(39)=6 because the final digit of 39th Mersenne prime is 1.
.............................................................
............... SHORT TABLE OF FINAL DIGITS .................
.............................................................
Final digit of ..... Final digit of Even ..... Final digit of
Mersenne prime ..... Superperfect number ..... Perfect number
(3) ................ (2) ..................... (6) ........... (For n=1, only)
(7) ................ (4) ..................... (8) ...........
(1) ................ (6) ..................... (6) ...........
MATHEMATICA
Mod[#, 10]&/@(2^(MersennePrimeExponent[Range[47]]-1)) (* Harvey P. Dale, Feb 23 2023 *)
CROSSREFS
KEYWORD
base,nonn,less
AUTHOR
Omar E. Pol, Apr 01 2008, corrected Apr 03 2008
EXTENSIONS
a(40)-a(47) from Jinyuan Wang, Mar 14 2020
STATUS
approved