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

A054556 a(n) = 4*n^2 - 9*n + 6.

Original entry on oeis.org

1, 4, 15, 34, 61, 96, 139, 190, 249, 316, 391, 474, 565, 664, 771, 886, 1009, 1140, 1279, 1426, 1581, 1744, 1915, 2094, 2281, 2476, 2679, 2890, 3109, 3336, 3571, 3814, 4065, 4324, 4591, 4866, 5149, 5440, 5739, 6046, 6361, 6684, 7015, 7354, 7701, 8056, 8419, 8790
Offset: 1

Views

Author

Keywords

Comments

Move in 1-4 direction in a spiral organized like A068225 etc.
Equals binomial transform of [1, 3, 8, 0, 0, 0, ...]. - Gary W. Adamson, Apr 30 2008
Ulam's spiral (N spoke). - Robert G. Wilson v, Oct 31 2011
Also, numbers of the form m*(4*m+1)+1 for nonpositive m. - Bruno Berselli, Jan 06 2016

Crossrefs

Cf. A266883: m*(4*m+1)+1 for m = 0,-1,1,-2,2,-3,3,...
Sequences on the four axes of the square spiral: Starting at 0: A001107, A033991, A007742, A033954; starting at 1: A054552, A054556, A054567, A033951.
Sequences on the four diagonals of the square spiral: Starting at 0: A002939 = 2*A000384, A016742 = 4*A000290, A002943 = 2*A014105, A033996 = 8*A000217; starting at 1: A054554, A053755, A054569, A016754.
Sequences obtained by reading alternate terms on the X and Y axes and the two main diagonals of the square spiral: Starting at 0: A035608, A156859, A002378 = 2*A000217, A137932 = 4*A002620; starting at 1: A317186, A267682, A002061, A080335.

Programs

Formula

a(n)^2 = Sum_{i = 0..2*(4*n-5)} (4*n^2-13*n+9+i)^2*(-1)^i = ((n-1)*(4*n-5)+1)^2. - Bruno Berselli, Apr 29 2010
From Harvey P. Dale, Aug 21 2011: (Start)
a(0)=1, a(1)=4, a(2)=15; for n > 2, a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: -x*(6*x^2+x+1)/(x-1)^3. (End)
From Franck Maminirina Ramaharo, Mar 09 2018: (Start)
a(n) = binomial(2*n - 2, 2) + 2*(n - 1)^2 + 1.
a(n) = A000384(n-1) + A058331(n-1).
a(n) = A130883(n-1) + A001105(n-1). (End)
E.g.f.: exp(x)*(6 - 5*x + 4*x^2) - 6. - Stefano Spezia, Apr 24 2024

Extensions

Edited by Frank Ellermann, Feb 24 2002
Incorrect formula deleted by N. J. A. Sloane, Aug 02 2009

A054567 a(n) = 4*n^2 - 7*n + 4.

Original entry on oeis.org

1, 6, 19, 40, 69, 106, 151, 204, 265, 334, 411, 496, 589, 690, 799, 916, 1041, 1174, 1315, 1464, 1621, 1786, 1959, 2140, 2329, 2526, 2731, 2944, 3165, 3394, 3631, 3876, 4129, 4390, 4659, 4936, 5221, 5514, 5815, 6124, 6441, 6766, 7099, 7440, 7789, 8146, 8511, 8884
Offset: 1

Views

Author

Keywords

Comments

The number 1 is placed in the middle of a sheet of squared paper and the numbers 2, 3, 4, 5, 6, etc. are written in a clockwise spiral around 1, as in A068225 etc. This sequence is read off along one of the rays from 1.
Ulam's spiral (W spoke of A054552). - Robert G. Wilson v, Oct 31 2011
Also, numbers of the form m*(4*m+1)+1 for nonnegative m. - Bruno Berselli, Jan 06 2016
The sequence forms the 1x2 diagonal of the square maze arrangement in A081344. - Jarrod G. Sage, Jul 17 2024

Crossrefs

Cf. A266883: m*(4*m+1)+1 for m = 0,-1,1,-2,2,-3,3,...
Sequences on the four axes of the square spiral: Starting at 0: A001107, A033991, A007742, A033954; starting at 1: A054552, A054556, A054567, A033951.
Sequences on the four diagonals of the square spiral: Starting at 0: A002939 = 2*A000384, A016742 = 4*A000290, A002943 = 2*A014105, A033996 = 8*A000217; starting at 1: A054554, A053755, A054569, A016754.
Sequences obtained by reading alternate terms on the X and Y axes and the two main diagonals of the square spiral: Starting at 0: A035608, A156859, A002378 = 2*A000217, A137932 = 4*A002620; starting at 1: A317186, A267682, A002061, A080335.

Programs

Formula

a(n) = 8*n+a(n-1)-11 for n>1, a(1)=1. - Vincenzo Librandi, Aug 07 2010
a(n) = A204674(n-1) / n. - Reinhard Zumkeller, Jan 18 2012
From Colin Barker, Oct 25 2014: (Start)
a(n) = 3*a(n-1)-3*a(n-2)+a(n-3).
G.f.: -x*(4*x^2+3*x+1) / (x-1)^3. (End)
E.g.f.: exp(x)*(4 - 3*x + 4*x^2) - 4. - Stefano Spezia, Apr 24 2024
a(n) = A016742(n-1) + n. - Jarrod G. Sage, Jul 17 2024

Extensions

Edited by Frank Ellermann, Feb 24 2002
Typo fixed by Charles R Greathouse IV, Oct 28 2009

A074378 Even triangular numbers halved.

Original entry on oeis.org

0, 3, 5, 14, 18, 33, 39, 60, 68, 95, 105, 138, 150, 189, 203, 248, 264, 315, 333, 390, 410, 473, 495, 564, 588, 663, 689, 770, 798, 885, 915, 1008, 1040, 1139, 1173, 1278, 1314, 1425, 1463, 1580, 1620, 1743, 1785, 1914, 1958, 2093, 2139, 2280, 2328, 2475
Offset: 0

Views

Author

W. Neville Holmes, Sep 04 2002

Keywords

Comments

Set of integers k such that k + (1 + 2 + 3 + 4 + ... + x) = 3*k, where x is sufficiently large. For example, 203 is a term because 203 + (1 + 2 + 3 + 4 + ... +28) = 609 and 609 = 3*203. - Gil Broussard, Sep 01 2008
Set of all m such that 16*m+1 is a perfect square. - Gary Detlefs, Feb 21 2010
Integers of the form Sum_{k=0..n} k/2. - Arkadiusz Wesolowski, Feb 07 2012
Numbers of the form h*(4*h + 1) for h = 0, -1, 1, -2, 2, -3, 3, ... - Bruno Berselli, Feb 26 2018
Numbers whose distance to nearest square equals their distance to nearest oblong; that is, numbers k such that A053188(k) = A053615(k). - Lamine Ngom, Oct 27 2020
The sequence terms are the exponents in the expansion of Product_{n >= 1} (1 - q^(8*n))*(1 + q^(8*n-3))*(1 + q^(8*n-5)) = 1 + q^3 + q^5 + q^14 + q^18 + .... - Peter Bala, Dec 30 2024

Crossrefs

Cf. A010709, A047522. [Vincenzo Librandi, Feb 14 2009]
Cf. A266883 (numbers n such that 16*n-15 is a square).

Programs

  • Magma
    f:=func; [0] cat [f(n*m): m in [-1,1], n in [1..25]]; // Bruno Berselli, Nov 13 2012
  • Maple
    a:=n->(2*n+1)*floor((n+1)/2): seq(a(n),n=0..50); # Muniru A Asiru, Feb 01 2019
  • Mathematica
    1/2 * Select[PolygonalNumber@ Range[0, 100], EvenQ] (* Michael De Vlieger, Jun 01 2017, Version 10.4 *)
    Select[Accumulate[Range[0,100]],EvenQ]/2 (* Harvey P. Dale, Feb 15 2025 *)
  • PARI
    a(n)=(2*n+1)*(n-n\2)
    

Formula

Sum_{n>=0} q^a(n) = (Prod_{n>0} (1-q^n))*(Sum_{n>=0} A035294(n)*q^n).
a(n) = n*(n + 1)/4 where n*(n + 1)/2 is even.
G.f.: x*(3 + 2*x + 3*x^2)/((1 - x)*(1 - x^2)^2).
From Benoit Jubin, Feb 05 2009: (Start)
a(n) = (2*n + 1)*floor((n + 1)/2).
a(2*k) = k*(4*k+1); a(2*k+1) = (k+1)*(4*k+3). (End)
a(2*n) = A007742(n), a(2*n-1) = A033991(n). - Arkadiusz Wesolowski, Jul 20 2012
a(n) = (4*n + 1 - (-1)^n)*(4*n + 3 - (-1)^n)/4^2. - Peter Bala, Jan 21 2019
a(n) = (2*n+1)*(n+1)*(1+(-1)^(n+1))/4 + (2*n+1)*(n)*(1+(-1)^n)/4. - Eric Simon Jacob, Jan 16 2020
From Amiram Eldar, Jul 03 2020: (Start)
Sum_{n>=1} 1/a(n) = 4 - Pi (A153799).
Sum_{n>=1} (-1)^(n+1)/a(n) = 6*log(2) - 4 (See A016687). (End)
a(n) = A014494(n)/2 = A274757(n)/3 = A266883(n) - 1. - Hugo Pfoertner, Dec 31 2024

A174114 Even central polygonal numbers (A193868) divided by 2.

Original entry on oeis.org

1, 2, 8, 11, 23, 28, 46, 53, 77, 86, 116, 127, 163, 176, 218, 233, 281, 298, 352, 371, 431, 452, 518, 541, 613, 638, 716, 743, 827, 856, 946, 977, 1073, 1106, 1208, 1243, 1351, 1388, 1502, 1541, 1661, 1702, 1828, 1871, 2003, 2048, 2186, 2233, 2377, 2426, 2576
Offset: 1

Author

Reinhard Zumkeller, Mar 08 2010

Keywords

Comments

Central terms of A170950, seen as a triangle of rows with an odd number of terms.
Equivalently, numbers of the form m*(4*m+3)+1, where m = 0, -1, 1, -2, 2, -3, 3, ... . - Bruno Berselli, Jan 05 2016
Conjecure: the sequence terms are the exponents in the expansion of Sum_{n >= 1} q^n * (Product_{k >= 2*n} 1 - q^k) = q + q^2 + q^8 + q^11 + q^23 + q^28 + .... Cf. A266883. - Peter Bala, May 10 2025

Crossrefs

Cf. A033951: numbers of the form m*(4*m+3)+1 for nonnegative m.

Programs

  • Mathematica
    Select[Table[(n (n + 1)/2 + 1)/2, {n, 600}], IntegerQ] (* Vladimir Joseph Stephan Orlovsky, Feb 06 2012 *)
    (Select[PolygonalNumber@ Range@ 100, OddQ] + 1 )/2 (* Version 10.4, or *)
    Rest@ CoefficientList[Series[-x (1 + x + 4 x^2 + x^3 + x^4)/((1 + x)^2 (x - 1)^3), {x, 0, 50}], x] (* Michael De Vlieger, Jun 30 2016 *)
  • PARI
    a(n)=(2*n-1)*(2*n-1-(-1)^n)\4+1 \\ Charles R Greathouse IV, Jun 11 2015

Formula

a(n+3) - a(n+2) - a(n+1) + a(n) = A010696(n+1).
a(n) = A170950(A002061(n)).
a(n) = A193868(n)/2. - Omar E. Pol, Aug 16 2011
G.f.: -x*(1+x+4*x^2+x^3+x^4) / ( (1+x)^2*(x-1)^3 ). - R. J. Mathar, Aug 18 2011
E.g.f.: ((2 + x + 2*x^2)*cosh(x) + (1 - x + 2*x^2)*sinh(x) - 2)/2. - Stefano Spezia, Nov 16 2024
Sum_{n>=1} 1/a(n) = 4*Pi*sinh(sqrt(7)*Pi/4)/(sqrt(7)*(sqrt(2) + 2*cosh(sqrt(7)*Pi/4))). - Amiram Eldar, May 12 2025

Extensions

New name from Omar E. Pol, Aug 16 2011

A294070 a(n) = (1/4)*(n^2 - 2*n)^2 + (9/4)*(n^2 - 2*n) + 6.

Original entry on oeis.org

4, 6, 15, 40, 96, 204, 391, 690, 1140, 1786, 2679, 3876, 5440, 7440, 9951, 13054, 16836, 21390, 26815, 33216, 40704, 49396, 59415, 70890, 83956, 98754, 115431, 134140, 155040, 178296, 204079, 232566, 263940, 298390, 336111, 377304, 422176, 470940, 523815
Offset: 1

Author

Jan Lakota Nono, Aug 14 2018

Keywords

Examples

			2*2, 2*3, 3*5, 5*8, 8*12, 12*17, 17*23, 23*30, 30*38, ...
		

Crossrefs

Programs

  • GAP
    List([1..40],n->(n^2-3*n+6)*(n^2-n+4)/4); # Muniru A Asiru, Aug 16 2018
    
  • Magma
    [(n^2-3*n+6)*(n^2-n+4)/4: n in [1..40]]; // Vincenzo Librandi, Aug 30 2018
    
  • Maple
    b:=n->(n^2-3*n+6)/2: seq(b(n)*b(n+1),n=1..40); # Muniru A Asiru, Aug 16 2018
  • Mathematica
    Times@@@Partition[Array[(#^2 -3# +6)/2 &, 40], 2, 1] (* Michael De Vlieger, Sep 24 2018 *)
    LinearRecurrence[{5,-10,10,-5,1}, {4,6,15,40,96}, 40] (* G. C. Greubel, Feb 10 2019 *)
  • PARI
    Vec(x*(4 - 14*x + 25*x^2 - 15*x^3 + 6*x^4)/(1-x)^5 + O(x^40)) \\ Colin Barker, Nov 26 2018
    
  • Sage
    [(n^2-3*n+6)*(n^2-n+4)/4 for n in (1..40)] # G. C. Greubel, Feb 10 2019

Formula

a(n) = A152948(n) * A152948(n+1).
From Muniru A Asiru, Aug 16 2018: (Start)
a(n) = (n^2 - 3*n + 6)*(n^2 - n + 4)/4.
a(n) = A152948(n)*A027689(n-1)/2. (End)
a(n) = A266883(A061925(n-1)). - Bruno Berselli, Aug 30 2018
From Colin Barker, Nov 26 2018: (Start)
G.f.: x*(4 - 14*x + 25*x^2 - 15*x^3 + 6*x^4)/(1 - x)^5.
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5) for n > 5.
a(n) = (24 - 18*n + 13*n^2 - 4*n^3 + n^4)/4. (End)
E.g.f.: (1/4)*exp(x)*(16 + 8*x + 14*x^2 + 6*x^3 + x^4). - Stefano Spezia, Nov 30 2018
Showing 1-5 of 5 results.