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!)
A328943 a(n) = 2 + (n mod 4). 2
2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Terms of the simple continued fraction of (36+sqrt(1806))/34.
2345/9999=0.234523452345...
Partial sums are given by A130482(n) + 2*n + 2.
Example of a sequence where the largest of any four consecutive terms equals the sum of the two smallest.
LINKS
David Nacin, Van der Laan Sequences and a Conjecture on Padovan Numbers, J. Int. Seq., Vol. 26 (2023), Article 23.1.2.
FORMULA
a(n) = 2 + (n mod 4).
G.f.: (5x^3 + 4x^2 + 3x + 2)/(1 - x^4).
a(n) = A010873(n) + 2 = A010883(n) + 1.
a(n) = 14 - a(n-1) - a(n-2) - a(n-3) for n > 2.
MATHEMATICA
PadRight[{}, 120, {2, 3, 4, 5}]
PROG
(Python)
def a(n):
...return n%4+2
CROSSREFS
Sequence in context: A212176 A070671 A119281 * A173525 A070772 A094937
KEYWORD
nonn
AUTHOR
David Nacin, Oct 31 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 April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)