|
|
A088440
|
|
a(4n) = 4n, otherwise a(n) = 1.
|
|
2
|
|
|
0, 1, 1, 1, 4, 1, 1, 1, 8, 1, 1, 1, 12, 1, 1, 1, 16, 1, 1, 1, 20, 1, 1, 1, 24, 1, 1, 1, 28, 1, 1, 1, 32, 1, 1, 1, 36, 1, 1, 1, 40, 1, 1, 1, 44, 1, 1, 1, 48, 1, 1, 1, 52, 1, 1, 1, 56, 1, 1, 1, 60, 1, 1, 1, 64, 1, 1, 1, 68, 1, 1, 1, 72, 1, 1, 1, 76, 1, 1, 1, 80, 1, 1, 1, 84, 1, 1, 1, 88, 1, 1, 1, 92, 1, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,5
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1 + x + x^2 + 4*x^3 - x^4 - x^5 - x^6)/(1-x^4)^2. - Georg Fischer, Nov 17 2022
E.g.f.: (1/2)*( cosh(x) + (x+2)*sinh(x) - cos(x) - x*sin(x) ). - G. C. Greubel, Dec 05 2022
|
|
MATHEMATICA
|
Array[1 + (# - 1)*((1 + (-1)^(#/2))*(1 + (-1)^#))/4 &, 96, 0] (* Michael De Vlieger, May 07 2021 *)
|
|
PROG
|
(Magma)
A088440:= func< n | n mod 4 eq 0 select n else 1>;
(SageMath)
def A088440(n): return 1 if (n%4) else n
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|