cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A122115 a(n) = a(n-1) + a(n-3) + a(n-5).

Original entry on oeis.org

-3, -1, 4, 8, 15, 16, 23, 42, 66, 104, 162, 251, 397, 625, 980, 1539, 2415, 3792, 5956, 9351, 14682, 23053, 36196, 56834, 89238, 140116, 220003, 345437, 542387, 851628, 1337181, 2099571, 3296636, 5176204, 8127403, 12761220, 20036995, 31461034, 49398458, 77562856, 121785110, 191220563, 300244453
Offset: 1

Views

Author

Jian Tang (jian.tang(AT)gmail.com), Oct 19 2006

Keywords

Comments

The ratio of successive terms of this sequence converges to the real root of x^5 - x^4 - x^2 - 1 which is approximately 1.5701473... (see A293506). - Iain Fox, Oct 12 2017

Examples

			  -3 +  4 + 15 = 16
  -1 +  8 + 16 = 23
   4 + 15 + 23 = 42
		

Crossrefs

This sequence includes the "Lost" numbers, 4 8 15 16 23 42, A104101. - Rick Powers (powersr(AT)westerntc.edu), Sep 18 2009

Programs

  • Maple
    a[1]:=-3: a[2]:=-1: a[3]:=4: a[4]:=8: a[5]:=15: for n from 6 to 45 do a[n]:=a[n-1]+a[n-3]+a[n-5] od: seq(a[n],n=1..45); # Emeric Deutsch, Oct 23 2006
  • Mathematica
    LinearRecurrence[{1,0,1,0,1},{-3,-1,4,8,15},50] (* Harvey P. Dale, Apr 22 2013 *)
  • PARI
    first(n) = my(res = vector(n)); res[1] = -3; res[2] = -1; res[3] = 4; res[4] = 8; res[5] = 15; for(i = 6, n, res[i] = res[i-1] + res[i-3] + res[i-5]); res \\ Iain Fox, Oct 23 2017

Formula

G.f.: x*(-3 + 2*x + 5x^2 + 7*x^3 + 8*x^4)/(1 - x - x^3 - x^5). - Philippe Deléham, Oct 20 2006

Extensions

More terms from Emeric Deutsch, Oct 23 2006

A130826 a(n) is the smallest number such that twice the number of divisors of (a(n)-n)/3 gives the n-th term in the first differences of the sequence produced by the Flavius Josephus sieve, A000960.

Original entry on oeis.org

4, 8, 15, 16, 23, 42, 55, 200, 81, 46, 119, 192, 205, 196622, 12303, 88, 449, 558, 127, 1748, 786453, 58, 2183, 3096, 1105, 786458, 12582939, 568, 2189, 2730, 9247, 572, 8673, 3106, 2195, 8676, 145, 110630, 3819, 2200, 786473, 20202, 79, 7604, 7077933
Offset: 1

Views

Author

Stephen Casey (hexomino(AT)gmail.com), Jul 17 2007

Keywords

Comments

The first six terms in the sequence are those from the TV show Lost, see A104101.

Examples

			a(8)=200 because the 8th term in A056526 is 14. Half of that is 7. The smallest number with seven divisors is 64 and 64*3 + 8 = 200.
		

Crossrefs

Extensions

Corrected and extended by Alois P. Heinz, Nov 27 2009
Showing 1-2 of 2 results.