login
A070665
a(n) = n^6 mod 42.
0
0, 1, 22, 15, 22, 1, 36, 7, 22, 15, 22, 1, 36, 1, 28, 15, 22, 1, 36, 1, 22, 21, 22, 1, 36, 1, 22, 15, 28, 1, 36, 1, 22, 15, 22, 7, 36, 1, 22, 15, 22, 1, 0, 1, 22, 15, 22, 1, 36, 7, 22, 15, 22, 1, 36, 1, 28, 15, 22, 1, 36, 1, 22, 21, 22, 1, 36, 1, 22, 15, 28, 1, 36, 1, 22, 15, 22, 7
OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
FORMULA
a(n) = a(n-42). - Wesley Ivan Hurt, Dec 26 2023
MATHEMATICA
PowerMod[Range[0, 100], 6, 42] (* or *) PadRight[{}, 100, {0, 1, 22, 15, 22, 1, 36, 7, 22, 15, 22, 1, 36, 1, 28, 15, 22, 1, 36, 1, 22, 21, 22, 1, 36, 1, 22, 15, 28, 1, 36, 1, 22, 15, 22, 7, 36, 1, 22, 15, 22, 1}] (* Harvey P. Dale, May 01 2022 *)
PROG
(Sage) [power_mod(n, 6, 42)for n in range(0, 78)] # Zerinvary Lajos, Nov 07 2009
(PARI) a(n)=n^6%42 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A196027 A040464 A266015 * A161551 A291428 A195927
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved