login
A070662
a(n) = n^6 mod 39.
0
0, 1, 25, 27, 1, 25, 12, 25, 25, 27, 1, 25, 27, 13, 1, 12, 1, 1, 12, 25, 25, 12, 1, 1, 12, 1, 13, 27, 25, 1, 27, 25, 25, 12, 25, 1, 27, 25, 1, 0, 1, 25, 27, 1, 25, 12, 25, 25, 27, 1, 25, 27, 13, 1, 12, 1, 1, 12, 25, 25, 12, 1, 1, 12, 1, 13, 27, 25, 1, 27, 25, 25, 12, 25, 1, 27, 25
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, 1).
FORMULA
a(n) = a(n-39). - Wesley Ivan Hurt, Dec 26 2023
MATHEMATICA
PowerMod[Range[0, 80], 6, 39] (* Harvey P. Dale, Aug 28 2016 *)
(* Alternative: *)
PadRight[{}, 120, {0, 1, 25, 27, 1, 25, 12, 25, 25, 27, 1, 25, 27, 13, 1, 12, 1, 1, 12, 25, 25, 12, 1, 1, 12, 1, 13, 27, 25, 1, 27, 25, 25, 12, 25, 1, 27, 25, 1}] (* Harvey P. Dale, Aug 28 2016 *)
PROG
(SageMath) [power_mod(n, 6, 39)for n in range(0, 77)] # Zerinvary Lajos, Nov 07 2009
(PARI) a(n)=n^6%39 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A042297 A042298 A157091 * A350181 A183982 A391998
KEYWORD
nonn,easy,changed
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved