The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A322417 a(n) - 2*a(n-1) = period 2: repeat [3, 0] for n > 0, a(0)=5, a(1)=13. 1
5, 13, 26, 55, 110, 223, 446, 895, 1790, 3583, 7166, 14335, 28670, 57343, 114686, 229375, 458750, 917503, 1835006, 3670015, 7340030, 14680063, 29360126, 58720255, 117440510, 234881023, 469762046, 939524095, 1879048190, 3758096383, 7516192766 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n) mod 9 = period 6: repeat [5, 4, 8, 1, 2, 7]. See A177883(n+2).
a(n+1) mod 10 = period 4: repeat [3, 6, 5, 0].
LINKS
FORMULA
a(n) = A166920(n) + A166920(n+1) + A166920(n+2) for n >= 2.
a(n) = a(n-2) + 21*2^(n-2) for n >= 2.
a(n) = a(n-1) + A321483(n) for n > 0.
From Colin Barker, Dec 07 2018: (Start)
G.f.: (5 + 3*x - 5*x^2) / ((1 - x)*(1 + x)*(1 - 2*x)).
a(n) = 7*2^n - 2 for n even.
a(n) = 7*2^n - 1 for n odd.
a(n) = 2*a(n-1) + a(n-2) - 2*a(n-3) for n > 2.
(End)
a(2*n+1) = A206372(n). a(2*n+2) = 2*A206372(n) for n > 0.
MATHEMATICA
a[0] = 5; a[1] = 13; a[n_] := a[n] = a[n - 2] + 21*2^(n - 2); Array[a, 30, 0] (* Amiram Eldar, Dec 07 2018 *)
LinearRecurrence[{2, 1, -2}, {5, 13, 26}, 31] (* Jean-François Alcover, Jan 28 2019 *)
PROG
(GAP) a:=[13, 26];; for n in [3..30] do a[n]:=a[n-2]+21*2^(n-2); od; Concatenation([5], a); # Muniru A Asiru, Dec 07 2018
(PARI) Vec((5 + 3*x - 5*x^2) / ((1 - x)*(1 + x)*(1 - 2*x)) + O(x^40)) \\ Colin Barker, Dec 07 2018
CROSSREFS
Cf. A177883.
Sequence in context: A180671 A211637 A256111 * A160420 A182840 A301675
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 07 2018
EXTENSIONS
First formula corrected by Jean-François Alcover, Feb 01 2019
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 25 05:18 EDT 2024. Contains 372782 sequences. (Running on oeis4.)