|
|
A294390
|
|
a(n) = 2^(n-4) mod n, for n >= 4.
|
|
2
|
|
|
1, 2, 4, 1, 0, 5, 4, 7, 4, 5, 2, 8, 0, 15, 4, 12, 16, 11, 14, 3, 16, 2, 10, 5, 8, 11, 4, 4, 0, 17, 30, 23, 4, 14, 24, 20, 16, 36, 4, 27, 12, 32, 6, 6, 16, 8, 14, 26, 40, 20, 22, 13, 16, 29, 22, 37, 16, 23, 8, 32, 0, 2, 4, 42, 52, 35, 64, 9, 40, 64, 28, 23, 20, 30, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
4,2
|
|
COMMENTS
|
Every nonnegative integer seems to appear in the sequence, and every integer seems to appear in the sequence of first differences (see link).
a(n)=0 iff n>=8 is a power of 2.
a(n)=2 iff n>=4 is in A015925 and is not divisible by 4. (End)
|
|
LINKS
|
|
|
EXAMPLE
|
For n=9, 2^5 = 32 == 5 mod 9.
|
|
MAPLE
|
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) a(n) = lift(Mod(2, n)^(n-4)); \\ Michel Marcus, Oct 30 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|