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-10 of 15 results. Next

A051682 11-gonal (or hendecagonal) numbers: a(n) = n*(9*n-7)/2.

Original entry on oeis.org

0, 1, 11, 30, 58, 95, 141, 196, 260, 333, 415, 506, 606, 715, 833, 960, 1096, 1241, 1395, 1558, 1730, 1911, 2101, 2300, 2508, 2725, 2951, 3186, 3430, 3683, 3945, 4216, 4496, 4785, 5083, 5390, 5706, 6031, 6365, 6708, 7060, 7421, 7791, 8170
Offset: 0

Views

Author

Keywords

Comments

From Floor van Lamoen, Jul 21 2001: (Start)
Write 0,1,2,3,4,... in a triangular spiral, then a(n) is the sequence found by reading the line from 0 in the direction 0,1,...
The spiral begins:
15
/ \
16 14
/ \
17 3 13
/ / \ \
18 4 2 12
/ \ \
5 0---1 11
/ \
6---7---8---9--10
. (End)
(1), (4+7), (7+10+13), (10+13+16+19), ... - Jon Perry, Sep 10 2004
This sequence does not contain any triangular numbers other than 0 and 1. See A188892. - T. D. Noe, Apr 13 2011
Sequence found by reading the line from 0, in the direction 0, 11, ... and the parallel line from 1, in the direction 1, 30, ..., in the square spiral whose vertices are the generalized 11-gonal numbers A195160. - Omar E. Pol, Jul 18 2012
Starting with offset 1, the sequence is the binomial transform of (1, 10, 9, 0, 0, 0, ...). - Gary W. Adamson, Aug 01 2015

References

  • Albert H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 189, 194-196.
  • E. Deza and M. M. Deza, Figurate numbers, World Scientific Publishing (2012), page 6.
  • Murray R. Spiegel, Calculus of Finite Differences and Difference Equations, "Schaum's Outline Series", McGraw-Hill, 1971, pp. 10-20, 79-94.

Crossrefs

First differences of A007586.
Cf. A093644 ((9, 1) Pascal, column m=2). Partial sums of A017173.

Programs

Formula

a(n) = n*(9*n-7)/2.
G.f.: x*(1+8*x)/(1-x)^3.
Row sums of triangle A131432. - Gary W. Adamson, Jul 10 2007
a(n) = 9*n + a(n-1) - 8 (with a(0)=0). - Vincenzo Librandi, Aug 06 2010
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3); a(0)=0, a(1)=1, a(2)=11. - Harvey P. Dale, May 07 2012
a(n) = A218470(9n). - Philippe Deléham, Mar 27 2013
a(9*a(n)+37*n+1) = a(9*a(n)+37*n) + a(9*n+1). - Vladimir Shevelev, Jan 24 2014
a(n+y) - a(n-y-1) = (a(n+x) - a(n-x-1))*(2*y+1)/(2*x+1), 0 <= x < n, y <= x, a(0)=0. - Gionata Neri, May 03 2015
a(n) = A000217(n-1) + A000217(3*n-2) - A000217(n-2). - Charlie Marion, Dec 21 2019
Product_{n>=2} (1 - 1/a(n)) = 9/11. - Amiram Eldar, Jan 21 2021
E.g.f.: exp(x)*x*(2 + 9*x)/2. - Stefano Spezia, Dec 25 2022

A027468 9 times the triangular numbers A000217.

Original entry on oeis.org

0, 9, 27, 54, 90, 135, 189, 252, 324, 405, 495, 594, 702, 819, 945, 1080, 1224, 1377, 1539, 1710, 1890, 2079, 2277, 2484, 2700, 2925, 3159, 3402, 3654, 3915, 4185, 4464, 4752, 5049, 5355, 5670, 5994, 6327, 6669, 7020, 7380, 7749, 8127, 8514, 8910, 9315
Offset: 0

Views

Author

Keywords

Comments

Staggered diagonal of triangular spiral in A051682, between (0,1,11) spoke and (0,8,25) spoke. - Paul Barry, Mar 15 2003
Number of permutations of n distinct letters (ABCD...) each of which appears thrice with n-2 fixed points. - Zerinvary Lajos, Oct 15 2006
Number of n permutations (n>=2) of 4 objects u, v, z, x with repetition allowed, containing n-2=0 u's. Example: if n=2 then n-2 =zero (0) u, a(1)=9 because we have vv, zz, xx, vx, xv, zx, xz, vz, zv. A027465 formatted as a triangular array: diagonal: 9, 27, 54, 90, 135, 189, 252, 324, ... . - Zerinvary Lajos, Aug 06 2008
a(n) is also the least weight of self-conjugate partitions having n different parts such that each part is a multiple of 3. - Augustine O. Munagi, Dec 18 2008
Also sequence found by reading the line from 0, in the direction 0, 9, ..., and the same line from 0, in the direction 0, 27, ..., in the square spiral whose vertices are the generalized hendecagonal numbers A195160. Axis perpendicular to A195147 in the same spiral. - Omar E. Pol, Sep 18 2011
Sum of the numbers from 4*n to 5*n. - Wesley Ivan Hurt, Nov 01 2014

Examples

			The first such self-conjugate partitions, corresponding to a(n)=1,2,3,4 are 3+3+3, 6+6+6+3+3+3, 9+9+9+6+6+6+3+3+3, 12+12+12+9+9+9+6+6+6+3+3+3. - _Augustine O. Munagi_, Dec 18 2008
		

Crossrefs

Programs

  • Magma
    [9*n*(n+1)/2: n in [0..50]]; // Vincenzo Librandi, Dec 29 2012
    
  • Maple
    [seq(9*binomial(n+1,2), n=0..50)]; # Zerinvary Lajos, Nov 24 2006
  • Mathematica
    Table[(9/2)*n*(n+1), {n,0,50}] (* G. C. Greubel, Aug 22 2017 *)
  • PARI
    a(n)=9*n*(n+1)/2
    
  • Sage
    [9*binomial(n+1, 2) for n in (0..50)] # G. C. Greubel, May 20 2021

Formula

Numerators of sequence a[n, n-2] in (a[i, j])^2 where a[i, j] = binomial(i-1, j-1)/2^(i-1) if j<=i, 0 if j>i.
a(n) = (9/2)*n*(n+1).
a(n) = 9*C(n, 1) + 9*C(n, 2) (binomial transform of (0, 9, 9, 0, 0, ...)). - Paul Barry, Mar 15 2003
G.f.: 9*x/(1-x)^3.
a(-1-n) = a(n).
a(n) = 9*C(n+1,2), n>=0. - Zerinvary Lajos, Aug 06 2008
a(n) = a(n-1) + 9*n (with a(0)=0). - Vincenzo Librandi, Nov 19 2010
a(n) = A060544(n+1) - 1. - Omar E. Pol, Oct 03 2011
a(n) = A218470(9*n+8). - Philippe Deléham, Mar 27 2013
E.g.f.: (9/2)*x*(x+2)*exp(x). - G. C. Greubel, Aug 22 2017
a(n) = A060544(n+1) - 1. See Centroid Triangles illustration. - Leo Tavares, Dec 27 2021
From Amiram Eldar, Feb 15 2022: (Start)
Sum_{n>=1} 1/a(n) = 2/9.
Sum_{n>=1} (-1)^(n+1)/a(n) = 4*log(2)/9 - 2/9. (End)
From Amiram Eldar, Feb 21 2023: (Start)
Product_{n>=1} (1 - 1/a(n)) = -(9/(2*Pi))*cos(sqrt(17)*Pi/6).
Product_{n>=1} (1 + 1/a(n)) = 9*sqrt(3)/(4*Pi). (End)

Extensions

More terms from Patrick De Geest, Oct 15 1999

A062741 3 times pentagonal numbers: 3*n*(3*n-1)/2.

Original entry on oeis.org

0, 3, 15, 36, 66, 105, 153, 210, 276, 351, 435, 528, 630, 741, 861, 990, 1128, 1275, 1431, 1596, 1770, 1953, 2145, 2346, 2556, 2775, 3003, 3240, 3486, 3741, 4005, 4278, 4560, 4851, 5151, 5460, 5778, 6105, 6441, 6786, 7140, 7503, 7875, 8256, 8646, 9045
Offset: 0

Views

Author

Floor van Lamoen, Jul 21 2001

Keywords

Comments

Write 0,1,2,3,4,... in a triangular spiral; then a(n) is the sequence found by reading from 0 in the vertical upward direction.
Number of edges in the join of two complete graphs of order 2n and n, K_2n * K_n - Roberto E. Martinez II, Jan 07 2002

Examples

			The spiral begins:
            15
          16  14
        17   3  13
      18   4   2  12
    19   5   0   1  11
  20   6   7   8   9  10
		

Crossrefs

Programs

  • Magma
    [Binomial(3*n,2): n in [0..50]]; // G. C. Greubel, Dec 26 2023
    
  • Maple
    [seq(binomial(3*n,2),n=0..45)]; # Zerinvary Lajos, Jan 02 2007
  • Mathematica
    3*PolygonalNumber[5,Range[0,50]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 06 2019 *)
  • PARI
    a(n)=3*n*(3*n-1)/2 \\ Charles R Greathouse IV, Sep 24 2015
    
  • SageMath
    [binomial(3*n,2) for n in range(51)] # G. C. Greubel, Dec 26 2023

Formula

a(n) = binomial(3*n, 2). - Zerinvary Lajos, Jan 02 2007
a(n) = (9*n^2 - 3*n)/2 = 3*n(3*n-1)/2 = A000326(n)*3. - Omar E. Pol, Dec 11 2008
a(n) = a(n-1) + 9*n - 6, with n > 0, a(0)=0. - Vincenzo Librandi, Aug 07 2010
G.f.: 3*x*(1+2*x)/(1-x)^3. - Bruno Berselli, Jan 21 2011
a(n) = A218470(9n+2). - Philippe Deléham, Mar 27 2013
a(n) = n*A008585(n) + Sum_{i=0..n-1} A008585(i) for n > 0. - Bruno Berselli, Dec 19 2013
From Amiram Eldar, Jan 10 2022: (Start)
Sum_{n>=1} 1/a(n) = log(3) - Pi/(3*sqrt(3)).
Sum_{n>=1} (-1)^(n+1)/a(n) = 2*Pi/(3*sqrt(3)) - 4*log(2)/3. (End)
E.g.f.: (3/2)*x*(2 + 3*x)*exp(x). - G. C. Greubel, Dec 26 2023

Extensions

Better definition and edited by Omar E. Pol, Dec 11 2008

A081266 Staggered diagonal of triangular spiral in A051682.

Original entry on oeis.org

0, 6, 21, 45, 78, 120, 171, 231, 300, 378, 465, 561, 666, 780, 903, 1035, 1176, 1326, 1485, 1653, 1830, 2016, 2211, 2415, 2628, 2850, 3081, 3321, 3570, 3828, 4095, 4371, 4656, 4950, 5253, 5565, 5886, 6216, 6555, 6903, 7260, 7626, 8001, 8385, 8778, 9180
Offset: 0

Views

Author

Paul Barry, Mar 15 2003

Keywords

Comments

Staggered diagonal of triangular spiral in A051682, between (0,4,17) spoke and (0,7,23) spoke.
Binomial transform of (0, 6, 9, 0, 0, 0, ...).
If Y is a fixed 3-subset of a (3n+1)-set X then a(n) is the number of (3n-1)-subsets of X intersecting Y. - Milan Janjic, Oct 28 2007
Partial sums give A085788. - Leo Tavares, Nov 23 2023

Examples

			a(1)=9*1+0-3=6, a(2)=9*2+6-3=21, a(3)=9*3+21-3=45.
For n=3, a(3) = -0^2+1^2-2^2+3^2-4^2+5^2-6^2+7^2-8^2+9^2 = 45.
		

Crossrefs

Programs

Formula

a(n) = 6*C(n,1) + 9*C(n,2).
a(n) = 3*n*(3*n+1)/2.
G.f.: (6*x+3*x^2)/(1-x)^3.
a(n) = A000217(3*n); a(2*n) = A144314(n). - Reinhard Zumkeller, Sep 17 2008
a(n) = 3*A005449(n). - R. J. Mathar, Mar 27 2009
a(n) = 9*n+a(n-1)-3 for n>0, a(0)=0. - Vincenzo Librandi, Aug 08 2010
a(n) = A218470(9n+5). - Philippe Deléham, Mar 27 2013
a(n) = Sum_{k=0..3n} (-1)^(n+k)*k^2. - Bruno Berselli, Aug 29 2013
E.g.f.: 3*exp(x)*x*(4 + 3*x)/2. - Stefano Spezia, Jun 06 2021
From Amiram Eldar, Aug 11 2022: (Start)
Sum_{n>=1} 1/a(n) = 2 - Pi/(3*sqrt(3)) - log(3).
Sum_{n>=1} (-1)^(n+1)/a(n) = 2*Pi/(3*sqrt(3)) + 4*log(2)/3 - 2. (End)
From Leo Tavares, Nov 23 2023: (Start)
a(n) = 3*A000217(n) + 3*A000290(n).
a(n) = A003154(n+1) - A133694(n+1). (End)

A022267 a(n) = n*(9*n + 1)/2.

Original entry on oeis.org

0, 5, 19, 42, 74, 115, 165, 224, 292, 369, 455, 550, 654, 767, 889, 1020, 1160, 1309, 1467, 1634, 1810, 1995, 2189, 2392, 2604, 2825, 3055, 3294, 3542, 3799, 4065, 4340, 4624, 4917, 5219, 5530, 5850, 6179
Offset: 0

Views

Author

Keywords

Comments

From Floor van Lamoen, Jul 21 2001: (Start)
Write 0, 1, 2, 3, 4, ... in a triangular spiral; then a(n) is the sequence found by reading the line from 0 in the direction 0, 5, ... . The spiral begins:
.
15
/ \
16 14
/ \
17 3 13
/ / \ \
18 4 2 12
/ / \ \
19 5 0---1 11
/ / \
20 6---7---8---9--10
.
(End)
a(n) is the sum of n consecutive integers starting from 4*n+1: (5), (9+10), (13+14+15), ... - Klaus Purath, Jul 07 2020
a(n) with n>0 are the numbers with the periodic length 3 in the Bulgarian and Mancala solitaire. - Paul Weisenhorn, Jan 29 2022

Crossrefs

Cf. similar sequences listed in A254963.
Cf. similar sequences listed in A022289.

Programs

  • Maple
    seq(binomial(9*n+1,2)/9, n=0..37); # Zerinvary Lajos, Jan 21 2007
  • Mathematica
    Table[ n (9 n + 1)/2, {n, 0, 40}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 5, 19}, 40] (* Harvey P. Dale, Jul 01 2013 *)
  • PARI
    vector(100,n,(n-1)*(9*n-8)/2) \\ Derek Orr, Feb 06 2015

Formula

a(n) = A110449(n, 4) for n>3.
From Bruno Berselli, Feb 11 2011: (Start)
G.f.: x*(5 + 4*x)/(1 - x)^3.
a(n) = 4*A000217(n) + A000566(n). (End)
a(n) = 9*n + a(n-1) - 4 with n>0, a(0)=0. - Vincenzo Librandi, Aug 04 2010
a(n) = A218470(9*n+4). - Philippe Deléham, Mar 27 2013
a(n) = A000217(5*n) - A000217(4*n). - Bruno Berselli, Oct 13 2016
E.g.f.: (1/2)*(9*x^2 + 10*x)*exp(x). - G. C. Greubel, Jul 17 2017
a(n) = A060544(n+1) - A016813(n). - Leo Tavares, Mar 20 2022

A131242 Partial sums of A059995: a(n) = sum_{k=0..n} floor(k/10).

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 156, 162, 168, 174, 180, 186, 192, 198
Offset: 0

Views

Author

Hieronymus Fischer, Jun 21 2007

Keywords

Comments

Complementary with A130488 regarding triangular numbers, in that A130488(n)+10*a(n)=n(n+1)/2=A000217(n).

Examples

			As square array :
    0,   0,   0,   0,   0,   0,   0,   0,   0,    0
    1,   2,   3,   4,   5,   6,   7,   8,   9,   10
   12,  14,  16,  18,  20,  22,  24,  26,  28,   30
   33,  36,  39,  42,  45,  48,  51,  54,  57,   60
   64,  68,  72,  76,  80,  84,  88,  92,  96,  100
  105, 110, 115, 120, 125, 130, 135, 140, 145,  150
  156, 162, 168, 174, 180, 186, 192, 198, 204,  210
... - _Philippe Deléham_, Mar 27 2013
		

Crossrefs

Programs

  • Mathematica
    Table[(1/2)*Floor[n/10]*(2*n - 8 - 10*Floor[n/10]), {n,0,50}] (* G. C. Greubel, Dec 13 2016 *)
    Accumulate[Table[FromDigits[Most[IntegerDigits[n]]],{n,0,110}]] (* or *) LinearRecurrence[{2,-1,0,0,0,0,0,0,0,1,-2,1},{0,0,0,0,0,0,0,0,0,0,1,2},120] (* Harvey P. Dale, Apr 06 2017 *)
  • PARI
    for(n=0,50, print1((1/2)*floor(n/10)*(2n-8-10*floor(n/10)), ", ")) \\ G. C. Greubel, Dec 13 2016
    
  • PARI
    a(n)=my(k=n\10); k*(n-5*k-4) \\ Charles R Greathouse IV, Dec 13 2016

Formula

a(n) = (1/2)*floor(n/10)*(2n-8-10*floor(n/10)).
a(n) = A059995(n)*(2n-8-10*A059995(n))/2.
a(n) = (1/2)*A059995(n)*(n-8+A010879(n)).
a(n) = (n-A010879(n))*(n+A010879(n)-8)/20.
G.f.: x^10/((1-x^10)(1-x)^2).
From Philippe Deléham, Mar 27 2013: (Start)
a(10n) = A051624(n).
a(10n+1) = A135706(n).
a(10n+2) = A147874(n+1).
a(10n+3) = 2*A005476(n).
a(10n+4) = A033429(n).
a(10n+5) = A202803(n).
a(10n+6) = A168668(n).
a(10n+7) = 2*A147875(n).
a(10n+8) = A135705(n).
a(10n+9) = A124080(n). (End)
a(n) = A008728(n-10) for n>= 10. - Georg Fischer, Nov 03 2018

A174738 Partial sums of floor(n/7).

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 13, 15, 17, 19, 21, 24, 27, 30, 33, 36, 39, 42, 46, 50, 54, 58, 62, 66, 70, 75, 80, 85, 90, 95, 100, 105, 111, 117, 123, 129, 135, 141, 147, 154, 161, 168, 175, 182, 189, 196, 204, 212, 220, 228, 236
Offset: 0

Views

Author

Mircea Merca, Nov 30 2010

Keywords

Comments

Apart from the initial zeros, the same as A011867.

Examples

			a(9) = floor(0/7) + floor(1/7) + floor(2/7) + floor(3/7) + floor(4/7) + floor(5/7) + floor(6/7) + floor(7/7) + floor(8/7) + floor(9/7) = 3.
		

Crossrefs

Programs

Formula

a(n) = round(n*(n-5)/14).
a(n) = floor((n-2)*(n-3)/14).
a(n) = ceiling((n+1)*(n-6)/14).
a(n) = a(n-7) + n - 6, n > 6.
a(n) = +2*a(n-1) - a(n-2) + a(n-7) - 2*a(n-8) + a(n-9). - R. J. Mathar, Nov 30 2010
G.f.: x^7/( (1 + x + x^2 + x^3 + x^4 + x^5 + x^6)*(1-x)^3 ). - R. J. Mathar, Nov 30 2010
a(7n) = A001106(n), a(7n+1) = A218471(n), a(7n+2) = A022264(n), a(7n+3) = A022265(n), a(7n+4) = A186029(n), a(7n+5) = A179986(n), a(7n+6) = A024966(n). - Philippe Deléham, Mar 26 2013

A062728 Second 11-gonal (or hendecagonal) numbers: a(n) = n*(9*n+7)/2.

Original entry on oeis.org

0, 8, 25, 51, 86, 130, 183, 245, 316, 396, 485, 583, 690, 806, 931, 1065, 1208, 1360, 1521, 1691, 1870, 2058, 2255, 2461, 2676, 2900, 3133, 3375, 3626, 3886, 4155, 4433, 4720, 5016, 5321, 5635, 5958, 6290, 6631, 6981, 7340, 7708, 8085, 8471, 8866, 9270
Offset: 0

Views

Author

Floor van Lamoen, Jul 21 2001

Keywords

Comments

Old name: Write 0,1,2,3,4,... in a triangular spiral, then a(n) is the sequence found by reading the line from 0 in the direction 0,8,...
Sequence found by reading the line from 0, in the direction 0, 25, ... and the line from 8, in the direction 8, 51, ..., in the square spiral whose vertices are the generalized 11-gonal numbers A195160. - Omar E. Pol, Jul 24 2012

Examples

			The spiral begins:
          15
          / \
        16  14
        /     \
      17   3  13
      /   / \   \
    18   4   2  12
    /   /     \   \
  19   5   0---1  11
  /   /             \
20   6---7---8---9--10
		

Crossrefs

Cf. A051682.
Second n-gonal numbers: A005449, A014105, A147875, A045944, A179986, A033954, this sequence, A135705.

Programs

Formula

a(n) = n*(9*n+7)/2.
a(n) = 9*n + a(n-1) - 1 (with a(0)=0). - Vincenzo Librandi, Aug 07 2010
From Bruno Berselli, Jan 13 2011: (Start)
G.f.: x*(8 + x)/(1 - x)^3.
a(n) = Sum_{i=0..n-1} A017257(i) for n > 0. (End)
a(n) = A218470(9n+7). - Philippe Deléham, Mar 27 2013
E.g.f.: x*(16 + 9*x)*exp(x)/2. - G. C. Greubel, May 24 2019

Extensions

New name from Bruno Berselli (with the original formula), Jan 13 2011

A022266 a(n) = n*(9*n - 1)/2.

Original entry on oeis.org

0, 4, 17, 39, 70, 110, 159, 217, 284, 360, 445, 539, 642, 754, 875, 1005, 1144, 1292, 1449, 1615, 1790, 1974, 2167, 2369, 2580, 2800, 3029, 3267, 3514, 3770, 4035, 4309, 4592, 4884, 5185, 5495, 5814, 6142, 6479, 6825, 7180, 7544, 7917, 8299, 8690, 9090, 9499
Offset: 0

Views

Author

Keywords

Comments

From Floor van Lamoen, Jul 21 2001: (Start)
Write 0,1,2,3,4,... in a triangular spiral, then a(n) is the sequence found by reading the line from 0 in the direction 0,4,...
The spiral begins:
15
/ \
16 14
/ \
17 3 13
/ / \ \
18 4 2 12
/ / \ \
19 5 0---1 11
/ / \
20 6---7---8---9--10
(End)
a(n) with n>0 are the numbers with period length 3 in Bulgarian and Mancala solitaire. - Paul Weisenhorn Jan 29 2022

Crossrefs

Cf. similar sequences listed in A022288.

Programs

Formula

a(n) = binomial(9*n,2)/9 for n >= 0. - Zerinvary Lajos, Jan 02 2007
a(n) = A049452(n) - A000326(n). - Zerinvary Lajos, Jun 12 2007
a(n) = 9*n + a(n-1) - 5 for n > 0, a(0)=0. - Vincenzo Librandi, Aug 04 2010
G.f.: x*(4 + 5*x)/(1 - x)^3. - Colin Barker, Feb 14 2012
a(n) = A218470(9*n+3). - Philippe Deléham, Mar 27 2013
a(n) = A000217(5*n-1) - A000217(4*n-1). - Bruno Berselli, Oct 17 2016
From Wesley Ivan Hurt, Dec 04 2016: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 2.
a(n) = (1/7) * Sum_{i=n..(8*n-1)} i. (End)
E.g.f.: (x/2)*(9*x + 8)*exp(x). - G. C. Greubel, Aug 24 2017
a(n) = A000326(3*n) / 3. - Joerg Arndt, May 04 2021

A118729 Rectangular array where row r contains the 8 numbers 4*r^2 - 3*r, 4*r^2 - 2*r, ..., 4*r^2 + 4*r.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 42, 45, 48, 52, 56, 60, 64, 68, 72, 76, 80, 85, 90, 95, 100, 105, 110, 115, 120, 126, 132, 138, 144, 150, 156, 162, 168
Offset: 0

Views

Author

Stuart M. Ellerstein (ellerstein(AT)aol.com), May 21 2006

Keywords

Comments

The numbers in row r span the interval ]8*A000217(r-1), 8*A000217(r)].
The first difference between the entries in row r is r.
Partial sums of floor(n/8). - Philippe Deléham, Mar 26 2013
Apart from the initial zeros, the same as A008726. - Philippe Deléham, Mar 28 2013
a(n+7) is the number of key presses required to type a word of n letters, all different, on a keypad with 8 keys where 1 press of a key is some letter, 2 presses is some other letter, etc., and under an optimal mapping of letters to keys and presses (answering LeetCode problem 3014). - Christopher J. Thomas, Feb 16 2024

Examples

			The array starts, with row r=0, as
  r=0:   0  0  0  0  0  0  0  0;
  r=1:   1  2  3  4  5  6  7  8;
  r=2:  10 12 14 16 18 20 22 24;
  r=3:  27 30 33 36 39 42 45 48;
		

Crossrefs

Programs

  • Mathematica
    Flatten[Table[4r^2+r(Range[-3,4]),{r,0,6}]] (* or *) LinearRecurrence[ {2,-1,0,0,0,0,0,1,-2,1},{0,0,0,0,0,0,0,0,1,2},60] (* Harvey P. Dale, Nov 26 2015 *)

Formula

From Philippe Deléham, Mar 26 2013: (Start)
a(8k) = A001107(k).
a(8k+1) = A002939(k).
a(8k+2) = A033991(k).
a(8k+3) = A016742(k).
a(8k+4) = A007742(k).
a(8k+5) = A002943(k).
a(8k+6) = A033954(k).
a(8k+7) = A033996(k). (End)
G.f.: x^8/((1-x)^2*(1-x^8)). - Philippe Deléham, Mar 28 2013
a(n) = floor(n/8)*(n-3-4*floor(n/8)). - Ridouane Oudra, Jun 04 2019
a(n+7) = (1/2)*(n+(n mod 8))*(floor(n/8)+1). - Christopher J. Thomas, Feb 13 2024

Extensions

Redefined as a rectangular tabf array and description simplified by R. J. Mathar, Oct 20 2010
Showing 1-10 of 15 results. Next