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-3 of 3 results.

A147678 Double, add 0, double, add 1, double, add 2, double, add 3, etc.

Original entry on oeis.org

1, 2, 2, 4, 5, 10, 12, 24, 27, 54, 58, 116, 121, 242, 248, 496, 503, 1006, 1014, 2028, 2037, 4074, 4084, 8168, 8179, 16358, 16370, 32740, 32753, 65506, 65520, 131040, 131055, 262110, 262126, 524252, 524269, 1048538, 1048556, 2097112, 2097131
Offset: 1

Views

Author

N. J. A. Sloane, Apr 21 2009

Keywords

Comments

A147675-A147678 are from a quiz that someone asked me to help them with.

Programs

  • Mathematica
    Transpose[NestList[Flatten[{Rest[#],2First[#]-5#[[3]]+ 4#[[5]]}]&,{1,2,2,4,5,10},40]][[1]] (* Harvey P. Dale, Mar 24 2011 *)
    dp[a_,n_]:=Flatten[{{x=a},Table[{2x,x=2x+m},{m,0,n}]}]; A147678=dp[1,20] (* Zak Seidov, Mar 24 2011 *)
    LinearRecurrence[{0, 4, 0, -5, 0, 2}, {1, 2, 2, 4, 5, 10}, 20] (* T. D. Noe, Mar 25 2011 *)

Formula

From R. J. Mathar, Apr 22 2009: (Start)
a(n) = 4*a(n-2) - 5*a(n-4) + 2*a(n-6).
G.f.: -x*(2*x+1)*(2*x^4 - 2*x^2 + 1)/((2*x^2-1)*(x-1)^2*(1+x)^2).
a(n)=(1 + (-1)^n)/2 + 2*A016116(n) - A105811(n+3)/4 - 3*(n+1)/4. (End)
a(n) = 2*a(n-1) - (n mod 2)*(a(n-1) - (n-3)/2). - Reinhard Zumkeller, Apr 22 2009

Extensions

More terms from R. J. Mathar, Apr 22 2009

A147677 Subtract 5, add 8, repeat.

Original entry on oeis.org

7, 2, 10, 5, 13, 8, 16, 11, 19, 14, 22, 17, 25, 20, 28, 23, 31, 26, 34, 29, 37, 32, 40, 35, 43, 38, 46, 41, 49, 44, 52, 47, 55, 50, 58, 53, 61, 56, 64, 59, 67, 62, 70, 65, 73, 68, 76, 71, 79, 74, 82, 77, 85, 80, 88, 83, 91, 86, 94, 89, 97, 92, 100, 95, 103, 98, 106, 101, 109
Offset: 1

Views

Author

N. J. A. Sloane, Apr 21 2009

Keywords

Comments

A147675-A147678 are from a quiz that someone asked me to help them with.

Programs

  • Mathematica
    LinearRecurrence[{1,1,-1},{7,2,10},80] (* Harvey P. Dale, Jan 16 2015 *)

Formula

From Zak Seidov, Apr 22 2009: (Start)
a(n) = a(n-2) + 3.
a(n) = (1/4)*(6*n + 9 - 13*(-1)^n). (End)
From R. J. Mathar, Apr 22 2009: (Start)
a(n) = a(n-1) + a(n-2) - a(n-3) = 3*n/2 + 9/4 + 13*(-1)^(n+1)/4.
G.f.: x*(7-5*x+x^2)/((1+x)*(x-1)^2). (End)

Extensions

More terms from Zak Seidov and R. J. Mathar, Apr 22 2009

A147676 Add 10, divide by 2, repeat.

Original entry on oeis.org

90, 100, 50, 60, 30, 40, 20, 30, 15, 25
Offset: 1

Views

Author

N. J. A. Sloane, Apr 21 2009

Keywords

Comments

A147675-A147678 are from a quiz that someone asked me to help them with.
Showing 1-3 of 3 results.