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 10 results.

A181565 a(n) = 3*2^n + 1.

Original entry on oeis.org

4, 7, 13, 25, 49, 97, 193, 385, 769, 1537, 3073, 6145, 12289, 24577, 49153, 98305, 196609, 393217, 786433, 1572865, 3145729, 6291457, 12582913, 25165825, 50331649, 100663297, 201326593, 402653185, 805306369, 1610612737, 3221225473
Offset: 0

Views

Author

M. F. Hasler, Oct 30 2010

Keywords

Comments

From Peter Bala, Oct 28 2013: (Start)
Let x and b be positive real numbers. We define an Engel expansion of x to the base b to be a (possibly infinite) nondecreasing sequence of positive integers [a(1), a(2), a(3), ...] such that we have the series representation x = b/a(1) + b^2/(a(1)*a(2)) + b^3/(a(1)*a(2)*a(3)) + .... Depending on the values of x and b such an expansion may not exist, and if it does exist it may not be unique. When b = 1 we recover the ordinary Engel expansion of x.
This sequence gives an Engel expansion of 2/3 to the base 2, with the associated series expansion 2/3 = 2/4 + 2^2/(4*7) + 2^3/(4*7*13) + 2^4/(4*7*13*25) + ....
More generally, for n and m positive integers, the sequence [m + 1, n*m + 1, n^2*m + 1, ...] gives an Engel expansion of the rational number n/m to the base n. See the cross references for several examples. (End)
The only squares in this sequence are 4, 25, 49. - Antti Karttunen, Sep 24 2023

Crossrefs

Essentially a duplicate of A004119.
A002253 and A039687 give the primes in this sequence, and A181492 is the subsequence of twin primes.

Programs

Formula

a(n) = A004119(n+1) = A103204(n+1) for all n >= 0.
From Ilya Gutkovskiy, Jun 01 2016: (Start)
O.g.f.: (4 - 5*x)/((1 - x)*(1 - 2*x)).
E.g.f.: (1 + 3*exp(x))*exp(x).
a(n) = 3*a(n-1) - 2*a(n-2). (End)
a(n) = 2*a(n-1) - 1. - Miquel Cerda, Aug 16 2016
For n >= 0, A005940(a(n)) = A001248(1+n). - Antti Karttunen, Sep 24 2023

A083575 a(0) = 6; for n>0, a(n) = 2*a(n-1) - 1.

Original entry on oeis.org

6, 11, 21, 41, 81, 161, 321, 641, 1281, 2561, 5121, 10241, 20481, 40961, 81921, 163841, 327681, 655361, 1310721, 2621441, 5242881, 10485761, 20971521, 41943041, 83886081, 167772161, 335544321, 671088641, 1342177281, 2684354561, 5368709121, 10737418241
Offset: 0

Views

Author

N. J. A. Sloane, Jun 15 2003

Keywords

Comments

The primes in this sequence are listed in A050526. - M. F. Hasler, Oct 30 2010
An Engel expansion of 2/5 to the base 2 as defined in A181565, with the associated series expansion 2/5 = 2/6 + 2^2/(6*11) + 2^3/(6*11*21) + 2^4/(6*11*21*41) + ... . - Peter Bala, Oct 29 2013

Crossrefs

Programs

  • Magma
    [5*2^n+1 : n in [0..30]]; // Vincenzo Librandi, Nov 03 2011
    
  • Mathematica
    NestList[2#-1&,6,40] (* Harvey P. Dale, Jun 23 2017 *)
  • PARI
    a(n)=5<M. F. Hasler, Oct 30 2010
    
  • PARI
    Vec((6-7*x)/((1-x)*(1-2*x)) + O(x^40)) \\ Colin Barker, Sep 20 2016

Formula

a(n) = 5*2^n + 1. - M. F. Hasler, Oct 30 2010
a(n) = 3*a(n-1) - 2*a(n-2), n>1. - Vincenzo Librandi, Nov 03 2011
G.f.: (6-7*x) / ((1-x)*(1-2*x)). - Colin Barker, Sep 20 2016
E.g.f.: exp(x)*(1 + 5*exp(x)). - Stefano Spezia, Oct 08 2022
Product_{n>=0} (1 + 1/a(n)) = 7/5. - Amiram Eldar, Aug 04 2024

A083686 a(0) = 8; for n>0, a(n) = 2*a(n-1) - 1.

Original entry on oeis.org

8, 15, 29, 57, 113, 225, 449, 897, 1793, 3585, 7169, 14337, 28673, 57345, 114689, 229377, 458753, 917505, 1835009, 3670017, 7340033, 14680065, 29360129, 58720257, 117440513, 234881025, 469762049, 939524097, 1879048193, 3758096385, 7516192769, 15032385537
Offset: 0

Views

Author

N. J. A. Sloane, Jun 15 2003

Keywords

Comments

An Engel expansion of 2/7 to the base 2 as defined in A181565, with the associated series expansion 2/7 = 2/8 + 2^2/(8*15) + 2^3/(8*15*29) + 2^4/(8*15*29*57) + ... . - Peter Bala, Oct 29 2013
The initial 8 is the only cube in this sequence. - Antti Karttunen, Sep 24 2023

Crossrefs

Programs

  • Magma
    [7*2^n+1 : n in [0..30]]; // Vincenzo Librandi, Nov 03 2011
    
  • Mathematica
    7*2^Range[0, 50] + 1 (* Paolo Xausa, Apr 02 2024 *)
  • PARI
    Vec((8-9*x)/((1-x)*(1-2*x)) + O(x^40)) \\ Colin Barker, Sep 20 2016
    
  • PARI
    a(n)=7<Charles R Greathouse IV, Sep 20 2016

Formula

a(n) = 7*2^n + 1. - David Brotherton (dbroth01(AT)aol.com), Jul 29 2003
a(n) = 3*a(n-1) - 2*a(n-2), n>1. - Vincenzo Librandi, Nov 03 2011
G.f.: (8-9*x) / ((1-x)*(1-2*x)). - Colin Barker, Sep 20 2016
E.g.f.: exp(x)*(1 + 7*exp(x)). - Stefano Spezia, Oct 08 2022
For n >= 0, A005940(a(n)) = A030078(1+n). - Antti Karttunen, Sep 24 2023

A195744 a(n) = 15*2^(n+1) + 1.

Original entry on oeis.org

31, 61, 121, 241, 481, 961, 1921, 3841, 7681, 15361, 30721, 61441, 122881, 245761, 491521, 983041, 1966081, 3932161, 7864321, 15728641, 31457281, 62914561, 125829121, 251658241, 503316481, 1006632961, 2013265921, 4026531841, 8053063681, 16106127361
Offset: 0

Views

Author

Brad Clardy, Sep 23 2011

Keywords

Comments

Binary numbers of form 1111(0^n)1 where n is the index and number of 0's.
Base 10 numbers of this sequence always end in 1.
An Engel expansion of 1/15 to the base 2 as defined in A181565, with the associated series expansion 1/15 = 2/31 + 2^2/(31*61) + 2^3/(31*61*121) + 2^4/(31*61*121*241) + ... . - Peter Bala, Oct 29 2013
The only squares in this sequence are 121 = 11^2 and 961 = 31^2. - Antti Karttunen, Sep 24 2023

Examples

			First few terms in binary are 11111, 111101, 1111001, 11110001, 111100001.
		

Crossrefs

Programs

Formula

a(n) = A052996(n+3) + A164094(n+2).
From Bruno Berselli, Sep 23 2011: (Start)
G.f.: (31-32*x)/(1-3*x+2*x^2).
a(n) = 2*a(n-1)-1.
a(n) = A110286(n+1)+1 = A128470(2^n). (End)
E.g.f.: exp(x)*(1 + 30*exp(x)). - Stefano Spezia, Oct 08 2022
For n >= 0, A005940(a(n)) = A030514(2+n). - Antti Karttunen, Sep 24 2023

Extensions

Corrected by Arkadiusz Wesolowski, Sep 23 2011

A020737 Pisot sequence L(5,9).

Original entry on oeis.org

5, 9, 17, 33, 65, 129, 257, 513, 1025, 2049, 4097, 8193, 16385, 32769, 65537, 131073, 262145, 524289, 1048577, 2097153, 4194305, 8388609, 16777217, 33554433, 67108865, 134217729, 268435457, 536870913, 1073741825, 2147483649, 4294967297, 8589934593
Offset: 0

Views

Author

Keywords

Comments

An Engel expansion of 1/2 to the base 2 as defined in A181565, with the associated series expansion 1/2 = 2/5 + 2^2/(5*9) + 2^3/(5*9*17) + 2^4/(5*9*17*33) + ... . - Peter Bala, Oct 28 2013

Crossrefs

Subsequence of A000051. See A008776 for definitions of Pisot sequences.

Programs

Formula

a(n) = 2^(n+2) + 1.
a(n) = 3*a(n-1) - 2*a(n-2).
G.f.: -(6*x-5) / ((x-1)*(2*x-1)). - Colin Barker, Jun 21 2014
E.g.f.: exp(x)*(1 + 4*exp(x)). - Stefano Spezia, Oct 08 2022

A083705 a(n) = 2*a(n-1) - 1 with a(0) = 10.

Original entry on oeis.org

10, 19, 37, 73, 145, 289, 577, 1153, 2305, 4609, 9217, 18433, 36865, 73729, 147457, 294913, 589825, 1179649, 2359297, 4718593, 9437185, 18874369, 37748737, 75497473, 150994945, 301989889, 603979777, 1207959553, 2415919105, 4831838209, 9663676417, 19327352833
Offset: 0

Views

Author

N. J. A. Sloane, Jun 15 2003

Keywords

Comments

An Engel expansion of 2/9 to the base 2 as defined in A181565, with the associated series expansion 2/9 = 2/10 + 2^2/(10*19) + 2^3/(10*19*37) + 2^4/(10*19*37*73) + ... . - Peter Bala, Oct 29 2013

Crossrefs

Programs

Formula

From R. J. Mathar, Aug 01 2009: (Start)
a(n) = 1 + 9*2^n = 3*a(n-1) - 2*a(n-2).
G.f.: -(-10+11*x)/((2*x-1)*(x-1)). (End)
E.g.f.: exp(x)*(1 + 9*exp(x)). - Stefano Spezia, Oct 08 2022

A168596 a(n) = 2*a(n-1) - 1 with a(0)=14.

Original entry on oeis.org

14, 27, 53, 105, 209, 417, 833, 1665, 3329, 6657, 13313, 26625, 53249, 106497, 212993, 425985, 851969, 1703937, 3407873, 6815745, 13631489, 27262977, 54525953, 109051905, 218103809, 436207617, 872415233, 1744830465, 3489660929
Offset: 0

Views

Author

Keywords

Comments

An Engel expansion of 2/13 to the base 2 as defined in A181565, with the associated series expansion 2/13 = 2/14 + 2^2/(14*27) + 2^3/(14*27*53) + 2^4/(14*27*53*105) + .... - Peter Bala, Oct 29 2013

Crossrefs

Programs

  • Magma
    [13*2^n+1 : n in [0..30]]; // Vincenzo Librandi, Nov 03 2011
  • Mathematica
    s=14;lst={s};Do[s=s+(s-1);AppendTo[lst,s],{n,5!}];lst
    NestList[2#-1&,14,30] (* Harvey P. Dale, Jul 22 2014 *)

Formula

From Vincenzo Librandi, Nov 03 2011: (Start)
a(n) = 13*2^n + 1.
a(n) = 3*a(n-1) - 2*a(n-2). (End)
From G. C. Greubel, Jul 27 2016: (Start)
G.f.: (14 - 15*x)/((1-x)*(1-2*x)).
E.g.f.: exp(x) + 13*exp(2*x). (End)

Extensions

Offset changed from 1 to 0 by Vincenzo Librandi, Nov 03 2011

A050529 Primes of the form 11*2^k + 1.

Original entry on oeis.org

23, 89, 353, 1409, 5767169, 23068673, 96757023244289, 26596368031521841843535873, 467888254516290387262140085218681290753, 1871553018065161549048560340874725163009, 9050275065266633231852330504065427777405047260984689248417349633
Offset: 1

Views

Author

N. J. A. Sloane, Dec 29 1999

Keywords

Crossrefs

For more terms see A002261.
Cf. A083683.

Programs

  • Mathematica
    Select[11*2^Range[210]+1,PrimeQ] (* Harvey P. Dale, Jun 15 2017 *)

Formula

a(n) = A083683(A002261(n)). - Elmo R. Oliveira, May 04 2025

A122041 a(n) = 2*a(n-1) - 1 for n>1, a(1)=23.

Original entry on oeis.org

23, 45, 89, 177, 353, 705, 1409, 2817, 5633, 11265, 22529, 45057, 90113, 180225, 360449, 720897, 1441793, 2883585, 5767169, 11534337, 23068673, 46137345, 92274689, 184549377, 369098753, 738197505, 1476395009, 2952790017
Offset: 1

Views

Author

Herman Jamke (hermanjamke(AT)fastmail.fm), Sep 14 2006

Keywords

Comments

From a quiz.

Examples

			23x2 -1 = 45; 45x2 -1 = 89; 89x2 -1 = 177; 2x177 -1 = 353.
		

Programs

  • GAP
    List([1..30], n-> 1 + 11*2^n); # G. C. Greubel, Oct 04 2019
  • Magma
    [1+11*2^n: n in [1..30]]; // G. C. Greubel, Oct 04 2019
    
  • Maple
    seq(1 + 11*2^n, n=1..30); # G. C. Greubel, Oct 04 2019
  • Mathematica
    NestList[2#-1&,23,30] (* or *) LinearRecurrence[{3,-2},{23,45},30] (* Harvey P. Dale, Dec 13 2012 *)
  • PARI
    a(n)=if(n>1,2*a(n-1)-1,23); for(n=1,40,print1(a(n),","))
    
  • Sage
    [1+11*2^n for n in (1..30)] # G. C. Greubel, Oct 04 2019
    

Formula

a(n) = A083683(n). - R. J. Mathar, Aug 02 2008
a(n) = 11*2^n + 1 for n>=1. - Paolo P. Lava, Oct 01 2008
a(n) = 3*a(n-1) - 2*a(n-2), a(1)=23, a(2)=45. - Harvey P. Dale, Dec 13 2012
From G. C. Greubel, Oct 04 2019: (Start)
G.f.: x*(23 - 24*x)/((1-x)*(1-2*x)).
E.g.f.: 11*exp(2*x) + exp(x) - 12. (End)

A288870 Triangle T from array A(k,n) = (2*k+1)*2^n + 1, k >=0, n >= 0 read by downwards antidiagonals.

Original entry on oeis.org

2, 3, 4, 5, 7, 6, 9, 13, 11, 8, 17, 25, 21, 15, 10, 33, 49, 41, 29, 19, 12, 65, 97, 81, 57, 37, 23, 14, 129, 193, 161, 113, 73, 45, 27, 16, 257, 385, 321, 225, 145, 89, 53, 31, 18, 513, 769, 641, 449, 289, 177, 105, 61, 35, 20, 1025, 1537, 1281, 897, 577, 353, 209, 121, 69, 39, 22
Offset: 0

Views

Author

Wolfdieter Lang, Jun 21 2017

Keywords

Comments

This entry was motivated by a class work of Ferran D.

Examples

			The array A begins:
k\n  0  1  2   3   4   5    6    7    8    9    10 ...
0:   2  3  5   9  17  33   65  129  257  513  1025
1:   4  7 13  25  49  97  193  385  769 1537  3073
2:   6 11 21  41  81 161  321  641 1281 2561  5121
3:   8 15 29  57 113 225  449  897 1793 3585  7169
4:  10 19 37  73 145 289  577 1153 2305 4609  9217
5:  12 23 45  89 177 353  705 1409 2817 5633 11265
6:  14 27 53 105 209 417  833 1665 3329 6657 13313
7:  16 31 61 121 241 481  961 1921 3841 7681 15361
8:  18 35 69 137 273 545 1089 2177 4353 8705 17409
9:  20 39 77 153 305 609 1217 2433 4865 9729 19457
...
The triangle T begins:
m\k    0    1    2   3   4   5   6   7  8  9 10 ...
0:     2
1:     3    4
2:     5    7    6
3:     9   13   11   8
4:    17   25   21  15  10
5:    33   49   41  29  19  12
6:    65   97   81  57  37  23  14
7:   129  193  161 113  73  45  27 16
8:   257  385  321 225 145  89  53 31 18
9:   513  769  641 449 289 177 105 61 35 20
10: 1025 1537 1281 897 577 353 209 121 69 39 22
...
		

Crossrefs

Cf. A288871. Columns of T (no 0's, or rows of A): A000051, A181565, A083575, A083686, A083705, A083683, A168596.
Row sums give A077802(n+1) or A095151(n+1).

Programs

  • Mathematica
    Table[(2 k + 1)*2^(m - k) + 1, {m, 0, 10}, {k, 0, m}] // Flatten (* Michael De Vlieger, Jun 25 2017 *)
  • PARI
    A(n, k) = (2*n + 1)*2^k + 1;
    for(n=0, 10, for(k=0, n, print1(A(k, n - k),", "))) \\ Indranil Ghosh, Jun 22 2017

Formula

Array A(k, n) = (2*k+1)*2^n + 1 for k >= 0 and n >= 0.
Triangle T(m, k) = A(k, m-k) = (2*k+1)*2^(m-k) + 1, k >= m >= 0, otherwise T(m, k) = 0.
O.g.f. for column k of T: x^k*(2*(k+1) - (2*k+3)*x)/((1-2*x)*(1-x)), k >= 0.
E.g.f. for column k of T (without leading 0's): (2*k+1)*exp(2*x) + exp(x), k>=0.
E.g.f. for column k of T: 2^(-k)*(2*k+1)*exp(2*x) + exp(x) - S(k,x), with S(k, x) = 2^(-k)* Sum_{m=1..k} A288871(k,m)*x^(m-1)/(m-1)! if k >=1 and S(0,x) = 0.
Showing 1-10 of 10 results.