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!)
A330715 a(1), a(2), a(3) = 1; a(n) = (a(n-1) mod a(n-3)) + a(n-2) + 1. 1
1, 1, 1, 2, 2, 3, 4, 4, 6, 7, 10, 12, 16, 19, 24, 28, 34, 39, 46, 52, 60, 67, 76, 84, 94, 103, 114, 124, 136, 147, 160, 172, 186, 199, 214, 228, 244, 259, 276, 292, 310, 327, 346, 364, 384, 403, 424, 444, 466, 487, 510, 532, 556, 579, 604, 628, 654, 679, 706, 732 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
a(1), a(2), a(3) = 1; a(n) = (a(n-1) mod a(n-3)) + a(n-2) + 1.
Conjectures from Colin Barker, Dec 28 2019: (Start)
G.f.: x*(1 - x - x^2 + 2*x^3 - x^4 + x^6 - 2*x^7 + 2*x^8) / ((1 - x)^3*(1 + x)).
a(n) = 2*a(n-1) - 2*a(n-3) + a(n-4) for n>9.
a(n) = (99 - 3*(-1)^n - 24*n + 2*n^2) / 8 for n>5.
(End)
MATHEMATICA
Nest[Append[#, Mod[#[[-1]], #[[-3]] ] + #[[-2]] + 1] &, {1, 1, 1}, 57] (* Michael De Vlieger, Dec 27 2019 *)
PROG
(Python)
x = 1
y = 1
z = 1
for i in range(4, 1001):
new = z % x + y + 1
print(str(i) +" " + str(new))
x = y
y = z
z = new
CROSSREFS
Sequence in context: A286218 A094997 A173673 * A018125 A292420 A161654
KEYWORD
nonn,hear
AUTHOR
Matthew Niemiro, Dec 27 2019
EXTENSIONS
More terms from Michael De Vlieger, Dec 27 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.)