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 11 results. Next

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

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

A083683 a(n) = 11*2^n + 1.

Original entry on oeis.org

12, 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, 5905580033, 11811160065
Offset: 0

Views

Author

N. J. A. Sloane, Jun 15 2003

Keywords

Comments

An Engel expansion of 2/11 to the base 2 as defined in A181565, with the associated series expansion 2/11 = 2/12 + 2^2/(12*23) + 2^3/(12*23*45) + 2^4/(12*23*45*89) + ... . - Peter Bala, Oct 29 2013

Crossrefs

Programs

Formula

a(n) = 2*a(n-1) - 1.
a(n) = 3*a(n-1) - 2*a(n-2), n>1. - Vincenzo Librandi, Nov 03 2011
G.f. (12-13*x)/((2*x-1)*(x-1)). - R. J. Mathar, Nov 03 2011
E.g.f.: exp(x)*(1 + 11*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

A224195 Ordered sequence of numbers of form (2^n - 1)*2^m + 1 where n >= 1, m >= 1.

Original entry on oeis.org

3, 5, 7, 9, 13, 15, 17, 25, 29, 31, 33, 49, 57, 61, 63, 65, 97, 113, 121, 125, 127, 129, 193, 225, 241, 249, 253, 255, 257, 385, 449, 481, 497, 505, 509, 511, 513, 769, 897, 961, 993, 1009, 1017, 1021, 1023, 1025, 1537, 1793, 1921, 1985, 2017, 2033, 2041, 2045, 2047
Offset: 1

Views

Author

Brad Clardy, Apr 01 2013

Keywords

Comments

The table is constructed so that row labels are 2^n - 1, and column labels are 2^n. The body of the table is the row*col + 1. A MAGMA program is provided that generates the numbers in a table format. The sequence is read along the antidiagonals starting from the top left corner.
All of these numbers have the following property:
let m be a member of A(n),
if a sequence B(n) = all i such that i XOR (m - 1) = i - (m - 1), then
the differences between successive members of B(n) is a repeating series
of 1's with the last difference in the pattern m. The number of ones in
the pattern is 2^j - 1, where j is the column index.
As an example consider A(4) which is 9,
the sequence B(n) where i XOR 8 = i - 8 starts as:
8, 9, 10, 11, 12, 13, 14, 15, 24... (A115419)
with successive differences of:
1, 1, 1, 1, 1, 1, 1, 9.
The main diagonal is the 6th cyclotomic polynomial evaluated at powers of two (A020515).
The formula for diagonals above the main diagonal
2^(2*n+1) - 2^(n + (a+1)/2) + 1 n>=(a+1)/2 a=odd number above diagonal
2^(2*n) - 2^(n + (b/2)) + 1 n>=(b/2)+1 b=even number above diagonal
The formulas for diagonals below the main diagonal
2^(2*n+1) - 2^(n + 1 -(a+1)/2) + 1 n>=(a+1)/2 a=odd number below diagonal
2^(2*n) - 2^(n - (b/2)) + 1 n>=(b/2)+1 b=even number below diagonal
Primes of this sequence are in A152449.

Examples

			Using the lexicographic ordering of A057555 the sequence is:
A(n) = Table(i,j) with (i,j)=(1,1),(1,2),(2,1),(1,3),(2,2),(3,1)...
  +1  |    2    4     8    16    32     64    128    256     512    1024 ...
  ----|-----------------------------------------------------------------
  1   |    3    5     9    17    33     65    129    257     513    1025
  3   |    7   13    25    49    97    193    385    769    1537    3073
  7   |   15   29    57   113   225    449    897   1793    3585    7169
  15  |   31   61   121   241   481    961   1921   3841    7681   15361
  31  |   63  125   249   497   993   1985   3969   7937   15873   31745
  63  |  127  253   505  1009  2017   4033   8065  16129   32257   64513
  127 |  255  509  1017  2033  4065   8129  16257  32513   65025  130049
  255 |  511 1021  2041  4081  8161  16321  32641  65281  130561  261121
  511 | 1023 2045  4089  8177 16353  32705  65409 130817  261633  523265
  1023| 2047 4093  8185 16369 32737  65473 130945 261889  523777 1047553
  ...
		

Crossrefs

Cf. A081118, A152449 (primes), A057555 (lexicographic ordering), A115419 (example).
Rows: A000051(i=1), A181565(2), A083686(3), A195744(4), A206371(5), A196657(6).
Cols: A000225(j=1), A036563(2), A048490(3), A176303 (7 offset of 8).
Diagonals: A020515 (main), A092440, A060867 (above), A134169 (below).

Programs

  • Magma
    //program generates values in a table form
    for i:=1 to 10 do
        m:=2^i - 1;
        m,[ m*2^n +1 : n in [1..10]];
    end for;
    //program generates sequence in lexicographic ordering of A057555, read
    //along antidiagonals from top. Primes in the sequence are marked with *.
    for i:=2 to 18 do
        for j:=1 to i-1 do
           m:=2^j -1;
           k:=m*2^(i-j) + 1;
           if IsPrime(k) then k,"*";
              else k;
           end if;;
        end for;
    end for;
  • Mathematica
    Table[(2^j-1)*2^(i-j+1) + 1, {i, 10}, {j, i}] (* Paolo Xausa, Apr 02 2024 *)

Formula

a(n) = (2^(A057555(2*n-1)) - 1)*2^(A057555(2*n)) + 1 for n>=1. [corrected by Jason Yuen, Feb 22 2025]
a(n) = A081118(n)+2; a(n)=(2^i-1)*2^j+1, where i=n-t*(t+1)/2, j=(t*t+3*t+4)/2-n, t=floor((-1+sqrt(8*n-7))/2). - Boris Putievskiy, Apr 04 2013

A195745 Primes of the form 15*2^k + 1.

Original entry on oeis.org

31, 61, 241, 7681, 15361, 61441, 2013265921, 2061584302081, 4123168604161, 263882790666241, 4222124650659841, 4533471823554859405148161, 77884452878022414427957444938301441, 5612166287350667205902149757630526795478780965027841
Offset: 1

Views

Author

Brad Clardy, Sep 23 2011

Keywords

Crossrefs

Primes in A195744.

Extensions

Offset corrected and name changed by Arkadiusz Wesolowski, Sep 23 2011

A334164 a(n) is the number of ON-cells in the completed n-th level of a triangular wedge in the hexagonal grid of A151723 (i.e., after 2^k >= n generations of the automaton in A151723 have been computed).

Original entry on oeis.org

1, 2, 2, 4, 2, 6, 4, 8, 2, 10, 6, 10, 4, 14, 8, 16, 2, 18, 10, 16, 8, 20, 12, 22, 6, 26, 14, 22, 8, 30, 16, 32, 2, 34, 18, 28, 16, 34, 18, 32, 14, 40, 22, 34, 16, 42, 24, 44, 10, 50, 26, 40, 20, 48, 28, 50, 14, 58, 30, 46, 16, 62, 32, 64
Offset: 1

Views

Author

Hartmut F. W. Hoft, Apr 17 2020

Keywords

Comments

Conjecture 1: Except for a(2^n + 1) = 2, n >= 1, for odd-numbered completed levels a lower bound of the ratio of ON-cells to the length of the level is (2^n + 2)/(3*2^(n+1) + 1) with limit 1/6, determined by the subsequence of levels starting with: 13, 25, 49, 97, 193, 385, 769, 1537, 3073, ..., and the associated ON-cell counts: 4, 6, 10, 18, 34, 66, 130, 258, 514, ..., as listed in the second column of each of the two triangles below.
The ON-cell counts for the indices in each row define a line of slope 1/2. The formula for the indices of levels in row k >= 2 is L(k, i) = 1 + Sum_{j = 0, ..., i} 2^(k-j), 0 <= i <= k - 2, and the formula for the associated numbers of ON-cells is C(k, i) = 2 + Sum_{j = 1..i} 2^(k-1-j), 0 <= i <= k - 2:
Index of the level: L(k, i) number of ON-cells: C(k, i)
k\i 0 1 2 3 4 5 6 k/i 0 1 2 3 4 5 6
2: 5 2: 2
3: 9 13 3: 2 4
4: 17 25 29 4: 2 6 8
5: 33 49 57 61 5: 2 10 14 16
6: 65 97 113 121 125 6: 2 18 26 30 32
7: 129 193 225 241 249 253 7: 2 34 50 58 62 64
8: 257 385 449 481 497 505 509 8: 2 66 98 114 122 126 128
...
The pairs ( L(k, i), C(k, i) ), for 0 <= i <= k-2, define a line of slope 1/2 for each k >= 3.
For triangle L(k, i): column 0 is A000051(n), n >= 2; column 1 is A181565(n), n >= 3; column 2 is A083686(n), n >= 2; columns 3 is A195744(n), n >= 1; column 4 is A206371(n), n >= 2; column 5 is A196657(n), n >= 1; the bounding diagonal is A036563(n), n >= 3.
For triangle C(k, i): column 1 is A052548(n), n >= 1; column 2 is A164094(n), n >= 1.
Conjecture 2: In an even-numbered completed level 2*n the fraction of ON-cells is bounded below by (23 * 2^n - 24)/(2^(n+5) - 36) with limit 23/32, determined by the subsequence of levels starting with: 28, 92, 220, 476, 988, 2012, 4060, ... .
There are 16 numbers less than 1000 that do not occur as the number of ON-cells in a completed level through level 16384: 136, 164, 330, 334, 402, 444, 526, 570, 598, 604, 614, 714, 740, 822, 832, 878.
Sequence A334169 of even-numbered completed levels in which all cells are ON-cells is a subsequence of this sequence.

Crossrefs

Programs

  • Mathematica
    (* a169781[] and support functions are defined in A169781 and create the list nTriangle *)
    a334164[n_] := Module[{k, levels={}}, a169781[n]; For[k=1, k<=n, k++, AppendTo[levels, Count[nTriangle[[k]], 1] - 2]]; levels]/;(n>=3 && IntegerQ[Log[2,n]])
    a334164[64] (* sequence data *)
Showing 1-10 of 11 results. Next