|
|
A143234
|
|
a(n) = sqrt(2^(-n)*A004003(n)) mod 32.
|
|
0
|
|
|
1, 1, 3, 29, 5, 5, 7, 25, 9, 9, 11, 21, 13, 13, 15, 17, 17, 17, 19, 13, 21, 21, 23, 9, 25, 25, 27, 5, 29, 29, 31, 1, 1, 1, 3, 29, 5, 5, 7, 25, 9, 9, 11, 21, 13, 13, 15, 17, 17, 17, 19, 13, 21, 21, 23, 9, 25, 25, 27, 5, 29, 29, 31, 1, 1, 1, 3, 29, 5, 5, 7, 25, 9, 9, 11, 21, 13, 13, 15, 17
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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,1).
|
|
FORMULA
|
a(n) = a(n-32). (End)
|
|
MATHEMATICA
|
(* First program *)
a[n_]:= Mod[If[EvenQ[n], n + 1, (-1)^((n-1)/2)*n], 32];
Table[a[n], {n, 0, 100}]
(* Second program *)
A143234[n_]:= Mod[(-1)^(Floor[Mod[n, 4]/3])*(2*Floor[n/2]+1), 32];
|
|
PROG
|
(Magma)
A143234:= func< n | (-1)^(0^((n+1) mod 4))*(2*Floor(n/2) + 1) mod 32 >;
(SageMath)
def A143234(n): return ((-1)^(0^((n+1)%4))*(2*int(n//2)+1))%32
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,changed
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Offset changed by Editor(s) of Oeis.
|
|
STATUS
|
approved
|
|
|
|