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.

A181900 a(n) = n * A022998(n).

Original entry on oeis.org

0, 1, 8, 9, 32, 25, 72, 49, 128, 81, 200, 121, 288, 169, 392, 225, 512, 289, 648, 361, 800, 441, 968, 529, 1152, 625, 1352, 729, 1568, 841, 1800, 961, 2048, 1089, 2312, 1225, 2592, 1369, 2888, 1521, 3200, 1681, 3528, 1849, 3872, 2025, 4232, 2209, 4608, 2401
Offset: 0

Views

Author

Reinhard Zumkeller, Mar 31 2012

Keywords

Comments

Multiplicative because A022998 is. - Andrew Howroyd, Jul 26 2018

Crossrefs

Cf. A016754, A022998, A086500 (partial sums), A139098.

Programs

  • Haskell
    a181900 n = a022998 n * n
    
  • Magma
    [Numerator(2*n^2/(n^2+1)): n in [0..50]]; // Vincenzo Librandi, Aug 19 2014
    
  • Mathematica
    LinearRecurrence[{0,3,0,-3,0,1},{0,1,8,9,32,25},50] (* Harvey P. Dale, Dec 01 2018 *)
  • PARI
    a(n)=if(n%2,n^2,2*n^2) \\ Charles R Greathouse IV, Aug 07 2012
    
  • SageMath
    [n^2*(1 + ((n+1)%2)) for n in (0..60)] # G. C. Greubel, Aug 01 2022

Formula

a(2*n) = 8*n^2 = A139098(n).
a(2*n+1) = 1 + 4*n + 4*n^2 = A016754(n).
From Colin Barker, Apr 01 2012: (Start)
a(n) = 3*a(n-2) - 3*a(n-4) + a(n-6).
G.f.: x*(1+8*x+6*x^2+8*x^3+x^4)/((1-x)^3*(1+x)^3). (End)
a(n) = numerator(2*n^2/(n^2+1)). - Vincenzo Librandi, Aug 19 2014
From Amiram Eldar, Feb 22 2022: (Start)
Sum_{n>=1} 1/a(n) = 7*Pi^2/48.
Sum_{n>=1} (-1)^(n+1)/a(n) = 5*Pi^2/48. (End)
From G. C. Greubel, Aug 01 2022: (Start)
a(n) = n^2*(3 + (-1)^n)/2.
E.g.f.: (1/2)*x*(-1 + x + 3*(1 + x)*exp(2*x)). (End)

A104586 Pentagonal wave sequence triangle.

Original entry on oeis.org

1, 7, 2, 12, 5, 1, 26, 15, 7, 2, 35, 22, 12, 5, 1, 57, 40, 26, 15, 7, 2, 70, 51, 35, 22, 12, 5, 1, 100, 77, 57, 40, 26, 15, 7, 2
Offset: 1

Views

Author

Gary W. Adamson, Mar 17 2005

Keywords

Comments

Row sums = A086500: 1, 9, 18, 50, 75, 147, 196...

Examples

			The first few rows are:
1;
7, 2;
12, 5, 1;
26, 15, 7, 2;
35, 22, 12, 5, 1;
57, 40, 26, 15, 7, 2;
70, 51, 35, 22, 12, 5, 1;
...
		

Crossrefs

Formula

Odd columns are terms of A104584, pentagonal wave sequence of the first kind, (starting with 1): 1, 7, 12, 26, 35, 57, 70... Even columns are terms of A104585, pentagonal wave sequence of the second kind (starting with 2): 2, 5, 15, 22, 40, 51... Odd rows are pentagonal numbers (A000326) starting with "1" at the right. Even rows are second pentagonal numbers (A005449) starting with 2 at the right. The triangle is extracted from a matrix product A * B, A = [1; 1, 2; 1, 2, 1; 1, 2, 1, 2;...], B = [1; 3, 1; 5, 3, 1; 7, 5, 3, 1;...] (both infinite lower triangular matrices, with the rest zeros).
Showing 1-2 of 2 results.