login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A274638 Main diagonal of A274637. 2
0, 0, 3, 5, 15, 27, 63, 119, 255, 495, 1023, 2015, 4095, 8127, 16383, 32639, 65535, 130815, 262143, 523775, 1048575, 2096127, 4194303, 8386559, 16777215, 33550335, 67108863, 134209535, 268435455, 536854527, 1073741823, 2147450879, 4294967295, 8589869055, 17179869183, 34359607295, 68719476735 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
From Colin Barker, Jul 09 2016: (Start)
a(n) = (-1+2^n+2^((n-3)/2)*(-1+(-1)^n)).
a(n) = 2^n-1 for n even.
a(n) = 2^n-1-2^((n-1)/2) for n odd.
a(n) = 3*a(n-1)-6*a(n-3)+4*a(n-4) for n>3.
G.f.: x^2*(3-4*x) / ((1-x)*(1-2*x)*(1-2*x^2)).
(End)
PROG
(PARI) concat([0, 0], Vec(x^2*(3-4*x)/((1-x)*(1-2*x)*(1-2*x^2)) + O(x^40))) \\ Colin Barker, Jul 09 2016
CROSSREFS
Cf. A274637.
Sequence in context: A289044 A289881 A290230 * A146244 A146457 A051044
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 08 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 19:05 EDT 2024. Contains 371751 sequences. (Running on oeis4.)