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.

A246057 a(n) = (5*10^n - 2)/3.

Original entry on oeis.org

1, 16, 166, 1666, 16666, 166666, 1666666, 16666666, 166666666, 1666666666, 16666666666, 166666666666, 1666666666666, 16666666666666, 166666666666666, 1666666666666666, 16666666666666666, 166666666666666666, 1666666666666666666, 16666666666666666666, 166666666666666666666
Offset: 0

Views

Author

Vincenzo Librandi, Aug 13 2014

Keywords

Comments

a(k-1) = (10^k - 4)/6, together with b(k) = 3*a(k-1) + 2 = A093143(k) and c(k) = 2*a(k-1) + 1 = A002277(k) are k-digit numbers for k >= 1 satisfying the so-called curious cubic identity a(k-1)^3 + b(k)^3 + c(k)^3 = a(k)*10^(2*k) + b(k)*10^k + c(k) (concatenated a(k)b(k)c(k)). This k-family and the proof of the identity has been given in the introduction of the van der Poorten reference. Thanks go to S. Heinemeyer for bringing these identities to my attention. - Wolfdieter Lang, Feb 07 2017

Examples

			Curious cubic identities (see a comment and reference above): 1^3 + 5^3 + 3^3 = 153, 16^3 + 50^3 + 33^3 = 165033, 166^3 + 500^3 + 333^3 = 166500333, ... - _Wolfdieter Lang_, Feb 07 2017
		

Crossrefs

Cf. sequences with terms of the form 1k..k where the digit k is repeated n times: A000042 (k=1), A090843 (k=2), A097166 (k=3), A099914 (k=4), A099915 (k=5), this sequence (k=6), A246058 (k=7), A246059 (k=8), A067272 (k=9).

Programs

  • Magma
    [(5*10^n-2)/3: n in [0..20]];
    
  • Mathematica
    Table[(5 10^n - 2)/3, {n, 0, 20}]
  • PARI
    vector(50, n, (5*10^(n-1)-2)/3) \\ Derek Orr, Aug 13 2014

Formula

G.f.: (1 + 5*x)/((1 - x)*(1 - 10*x)).
a(n) = 11*a(n-1) - 10*a(n-2).
E.g.f.: exp(x)*(5*exp(9*x) - 2)/3. - Stefano Spezia, May 02 2025
a(n) = A323639(n+1)/2 = A086948(n+1)/12. - Elmo R. Oliveira, May 07 2025

A137233 Number of n-digit even numbers.

Original entry on oeis.org

5, 45, 450, 4500, 45000, 450000, 4500000, 45000000, 450000000, 4500000000, 45000000000, 450000000000, 4500000000000, 45000000000000, 450000000000000, 4500000000000000, 45000000000000000, 450000000000000000, 4500000000000000000, 45000000000000000000, 450000000000000000000
Offset: 1

Views

Author

Ctibor O. Zizka, Mar 08 2008

Keywords

Comments

From Kival Ngaokrajang, Oct 18 2013: (Start)
a(n) is also the total number of double rows identified numbers in n digit.
For example:
n = 1: 01 23 45 67 89 = 5 double rows;
n = 2: 1011 1213 1415 1617 1819...9899 = 45 double rows;
n = 3: 100101 102103 104105...998999 = 450 double rows;
The number of double rows is also A030656. (End)
a(n) is also the number of n-digit integers with an even number of even digits (A356929); a(5) = 45000 is the answer to the question 2 of the Olympiade Mathématique Belge in 2004 (link). - Bernard Schott, Sep 06 2022
a(n) is also the number of n-digit integers with an odd number of odd digits (A054684). - Bernard Schott, Nov 07 2022

Examples

			a(2) = 45 because there are 45 2-digit even numbers.
		

Crossrefs

Programs

Formula

a(n) = 9*10^(n-1)/2 if n > 1. - R. J. Mathar, May 23 2008
From Elmo R. Oliveira, Jul 23 2025: (Start)
G.f.: 5*x*(1-x)/(1-10*x).
E.g.f.: (-9 + 10*x + 9*exp(10*x))/20.
a(n) = 10*a(n-1) for n > 2.
a(n) = A052268(n)/2 for n >= 2. (End)

Extensions

Corrected and extended by R. J. Mathar, May 23 2008
More terms from Elmo R. Oliveira, Jul 23 2025

A137215 a(n) = 3*(10^n) + (n^2 + 1)*(10^n - 1)/9.

Original entry on oeis.org

3, 32, 355, 4110, 48887, 588886, 7111107, 85555550, 1022222215, 12111111102, 142222222211, 1655555555542, 19111111111095, 218888888888870, 2488888888888867, 28111111111111086, 315555555555555527, 3522222222222222190, 39111111111111111075, 432222222222222222182
Offset: 0

Views

Author

Ctibor O. Zizka, Mar 06 2008

Keywords

Comments

Sequence generalized: a(n) = a(0)*(B^n) + F(n)* ((B^n)-1)/(B-1); a(0), B integers, F(n) arithmetic function.
Examples:
a(0) = 1, B = 10, F(n) = 1 gives A002275, F(n) = 2 gives A090843, F(n) = 3 gives A097166, F(n) = 4 gives A099914, F(n) = 5 gives A099915.
a(0) = 1, B = 2, F(n) = 1 gives A000225, F(n) = 2 gives A033484, F(n) = 3 gives A036563, F(n) = 4 gives A048487, F(n) = 5 gives A048488, F(n) = 6 gives A048489.
a(0) = 1, B = 3, F(n) = 1 gives A003462, F(n) = 2 gives A048473, F(n) = 3 gives A134931, F(n) = 4 gives A058481, F(n) = 5 gives A116952.
a(0) = 1, B = 4, F(n) = 1 gives A002450, F(n) = 2 gives A020989, F(n) = 3 gives A083420, F(n) = 4 gives A083597, F(n) = 5 gives A083584.
a(0) = 1, B = 5, F(n) = 1 gives A003463, F(n) = 2 gives A057651, F(n) = 3 gives A117617, F(n) = 4 gives A081655.
a(0) = 2, B = 10, F(n) = 1 gives A037559, F(n) = 2 gives A002276.

Examples

			a(3) = 3*10^3 + (3*3 + 1)*(10^3 - 1)/9 = 4110.
		

Crossrefs

Programs

  • Mathematica
    Table[3*10^n +(n^2 +1)*(10^n -1)/9, {n,0,30}] (* G. C. Greubel, Jan 05 2022 *)
  • PARI
    a(n) = 3*(10^n) + (n*n+1)*((10^n)-1)/9; \\ Jinyuan Wang, Feb 27 2020
    
  • Sage
    [3*10^n +(1+n^2)*(10^n -1)/9 for n in (0..30)] # G. C. Greubel, Jan 05 2022

Formula

a(n) = 3*(10^n) + (n^2 + 1)*(10^n - 1)/9.
O.g.f.: (3 - 67*x + 478*x^2 - 1002*x^3 + 850*x^4 - 100*x^5)/((1-x)^3 * (1-10*x)^3). - R. J. Mathar, Mar 16 2008

Extensions

More terms from R. J. Mathar, Mar 16 2008
More terms from Jinyuan Wang, Feb 27 2020
Showing 1-3 of 3 results.