|
|
A168398
|
|
a(n) = 4 + 8*floor((n-1)/2).
|
|
2
|
|
|
4, 4, 12, 12, 20, 20, 28, 28, 36, 36, 44, 44, 52, 52, 60, 60, 68, 68, 76, 76, 84, 84, 92, 92, 100, 100, 108, 108, 116, 116, 124, 124, 132, 132, 140, 140, 148, 148, 156, 156, 164, 164, 172, 172, 180, 180, 188, 188, 196, 196, 204, 204, 212, 212, 220, 220, 228, 228
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 8*n - a(n-1) - 8, with n>1, a(1)=4.
E.g.f.: 4*(1 + (x - 1)*cosh(x) + x*sinh(x)). - G. C. Greubel, Jul 20 2016
|
|
MATHEMATICA
|
LinearRecurrence[{1, 1, -1}, {4, 4, 12}, 60] (* or *) With[{r=NestList[ #+8&, 4, 30]}, Riffle[r, r]] (* Harvey P. Dale, Oct 18 2021 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,less
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|