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!)
A280293 a(0) = 3, a(n+1) = 2*a(n) + periodic sequence of length 2: repeat [-5, 4]. 1
3, 1, 6, 7, 18, 31, 66, 127, 258, 511, 1026, 2047, 4098, 8191, 16386, 32767, 65538, 131071, 262146, 524287, 1048578, 2097151, 4194306, 8388607, 16777218, 33554431, 67108866, 134217727, 268435458, 536870911, 1073741826, 2147483647, 4294967298, 8589934591 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
From 1, the last digit is a periodic sequence of length 4:repeat [1, 6, 7, 8].
LINKS
FORMULA
a(2n) = 4^n + 2. a(2n+1) = 2*4^n - 1.
a(n) = 2*a(n-1) + a(n-2) - 2*a(n-3), n>2.
a(n) = 2^n + periodic sequence of length 2: repeat [2, -1].
a(n) = 2^(n+2) - A280173(n).
a(n+2) = a(n) + 3*2^n, a(0) = 3, a(1) = 1.
G.f.: (3-5*x+x^2) / ((1-x)*(1+x)*(1-2*x)). - Colin Barker, Dec 31 2016
MATHEMATICA
LinearRecurrence[{2, 1, -2}, {3, 1, 6}, 50] (* Paolo Xausa, Nov 13 2023 *)
PROG
(PARI) Vec((3-5*x+x^2) / ((1-x)*(1+x)*(1-2*x)) + O(x^40)) \\ Colin Barker, Dec 31 2016
CROSSREFS
Sequence in context: A330587 A350647 A199662 * A226483 A103407 A306938
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 31 2016
EXTENSIONS
More terms from Colin Barker, Dec 31 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 May 6 08:30 EDT 2024. Contains 372290 sequences. (Running on oeis4.)