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

A007018 a(n) = a(n-1)^2 + a(n-1), a(0)=1.

Original entry on oeis.org

1, 2, 6, 42, 1806, 3263442, 10650056950806, 113423713055421844361000442, 12864938683278671740537145998360961546653259485195806
Offset: 0

Views

Author

Keywords

Comments

Number of ordered trees having nodes of outdegree 0,1,2 and such that all leaves are at level n. Example: a(2)=6 because, denoting by I a path of length 2 and by Y a Y-shaped tree with 3 edges, we have I, Y, I*I, I*Y, Y*I, Y*Y, where * denotes identification of the roots. - Emeric Deutsch, Oct 31 2002
Equivalently, the number of acyclic digraphs (dags) that unravel to a perfect binary tree of height n. - Nachum Dershowitz, Jul 03 2022
a(n) has at least n different prime factors. [Saidak]
Subsequence of squarefree numbers (A005117). - Reinhard Zumkeller, Nov 15 2004 [This has been questioned, see MathOverflow link. - Charles R Greathouse IV, Mar 30 2015]
For prime factors see A007996.
Curtiss shows that if the reciprocal sum of the multiset S = {x_1, x_2, ..., x_n} is 1, then max(S) <= a(n). - Charles R Greathouse IV, Feb 28 2007
The number of reduced ZBDDs for Boolean functions of n variables in which there is no zero sink. (ZBDDs are "zero-suppressed binary decision diagrams.") For example, a(2)=6 because of the 2-variable functions whose truth tables are 1000, 1010, 1011, 1100, 1110, 1111. - Don Knuth, Jun 04 2007
Using the methods of Aho and Sloane, Fibonacci Quarterly 11 (1973), 429-437, it is easy to show that a(n) is the integer just a tiny bit below the real number theta^{2^n}-1/2, where theta =~ 1.597910218 is the exponential of the rapidly convergent series Sum_{n>=0} log(1+1/a_n)/2^{n+1}. For example, theta^32 - 1/2 =~ 3263442.0000000383. - Don Knuth, Jun 04 2007 [Corrected by Darryl K. Nester, Jun 19 2017]
The next term has 209 digits. - Harvey P. Dale, Sep 07 2011
Urquhart shows that a(n) is the minimum size of a tableau refutation of the clauses of the complete binary tree of depth n, see pp. 432-434. - Charles R Greathouse IV, Jan 04 2013
For any positive a(0), the sequence a(n) = a(n-1) * (a(n-1) + 1) gives a constructive proof that there exists integers with at least n distinct prime factors, e.g. a(n). As a corollary, this gives a constructive proof of Euclid's theorem stating that there are an infinity of primes. - Daniel Forgues, Mar 03 2017
Lower bound for A100016 (with equality for the first 5 terms), where a(n)+1 is replaced by nextprime(a(n)). - M. F. Hasler, May 20 2019

References

  • R. Honsberger, Mathematical Gems III, M.A.A., 1985, p. 94.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Lower bound for A100016.
Row sums of A122888.

Programs

  • Haskell
    a007018 n = a007018_list !! n
    a007018_list = iterate a002378 1  -- Reinhard Zumkeller, Dec 18 2013
    
  • Magma
    [n eq 1 select 1 else Self(n-1)^2 + Self(n-1): n in [1..10]]; // Vincenzo Librandi, May 19 2015
    
  • Maple
    A007018 := proc(n)
        option remember;
        local aprev;
        if n = 0 then
            1;
        else
            aprev := procname(n-1) ;
            aprev*(aprev+1) ;
        end if;
    end proc: # R. J. Mathar, May 06 2016
  • Mathematica
    FoldList[#^2 + #1 &, 1, Range@ 8] (* Robert G. Wilson v, Jun 16 2011 *)
    NestList[#^2 + #&, 1, 10] (* Harvey P. Dale, Sep 07 2011 *)
  • Maxima
    a[1]:1$
    a[n]:=(a[n-1] + (a[n-1]^2))$
    A007018(n):=a[n]$
    makelist(A007018(n),n,1,10); /* Martin Ettl, Nov 08 2012 */
    
  • PARI
    a(n)=if(n>0,my(x=a(n-1));x^2+x,1) \\ Edited by M. F. Hasler, May 20 2019 and Jason Yuen, Mar 01 2025
    
  • Python
    from itertools import islice
    def A007018_gen(): # generator of terms
        a = 1
        while True:
            yield a
            a *= a+1
    A007018_list = list(islice(A007018_gen(),9)) # Chai Wah Wu, Mar 19 2024

Formula

a(n) = A000058(n)-1 = A000058(n-1)^2 - A000058(n-1) = 1/(1-Sum_{jA000058(j)) where A000058 is Sylvester's sequence. - Henry Bottomley, Jul 23 2001
a(n) = floor(c^(2^n)) where c = A077125 = 1.597910218031873178338070118157... - Benoit Cloitre, Nov 06 2002
a(1)=1, a(n) = Product_{k=1..n-1} (a(k)+1). - Benoit Cloitre, Sep 13 2003
a(n) = A139145(2^(n+1) - 1). - Reinhard Zumkeller, Apr 10 2008
If an (additional) initial 1 is inserted, a(n) = Sum_{kFranklin T. Adams-Watters, Jun 11 2009
a(n+1) = a(n)-th oblong (or promic, pronic, or heteromecic) numbers (A002378). a(n+1) = A002378(a(n)) = A002378(a(n-1)) * (A002378(a(n-1)) + 1). - Jaroslav Krizek, Sep 13 2009
a(n) = A053631(n)/2. - Martin Ettl, Nov 08 2012
Sum_{n>=0} (-1)^n/a(n) = A118227. - Amiram Eldar, Oct 29 2020
Sum_{n>=0} 1/a(n) = A371321. - Amiram Eldar, Mar 19 2024

A082732 a(1) = 1, a(2) = 3, a(n) = LCM of all the previous terms + 1.

Original entry on oeis.org

1, 3, 4, 13, 157, 24493, 599882557, 359859081592975693, 129498558604939936868397356895854557, 16769876680757063368089314196389622249367851612542961252860614401811693
Offset: 1

Views

Author

Amarnath Murthy, Apr 14 2003

Keywords

Comments

The LCM is in fact the product of all previous terms. From a(5) onwards the terms alternately end in 57 and 93.

Crossrefs

Programs

  • Mathematica
    a[1] = 1; a[2] = 3; a[n_] := Apply[LCM, Table[a[i], {i, 1, n - 1}]] + 1; Table[ a[n], {n, 1, 10}]
    c=1.8806785436830780944921917650127503562630617563236301969047995953391479871\
    7695395204087358090874194124503892563356447954254847544689332763; Table[c^(2^n),{n,1,6}] or a = {}; k = 4; Do[AppendTo[a, k]; k = k^2 - k + 1, {n, 1, 10}]; a (* Artur Jasinski, Sep 22 2008 *)

Formula

For n>=3, a(n+1) = a(n)^2 - a(n) + 1.
For n>=3, a(n) = A004168(n-3) + 1. - Max Alekseyev, Aug 09 2019
1/3 = Sum_{n=3..oo} 1/a(n) = 1/4 + 1/13 + 1/157 + 1/24493 + ... or 1 = Sum_{n=3..oo} 3/a(n) = 3/4 + 3/13 + 3/157 + 3/24493 + .... If we take segment of length 1 and cut off in each step fragment of maximal length such that numerator of fraction is 3, denominators of such fractions will be successive numbers of this sequence. - Artur Jasinski, Sep 22 2008
a(n+2)=1.8806785436830780944921917650127503562630617563236301969047995953391\
4798717695395204087358090874194124503892563356447954254847544689332763...^(2^n). - Artur Jasinski, Sep 22 2008

Extensions

More terms from Robert G. Wilson v, Apr 15 2003

A376062 Lexicographically earliest sequence of positive integers a(1), a(2), a(3), ... such that for any n > 0, S(n) = Sum_{k = 1..n} b(k)/a(k) < 1, where {b(k)} is the sequence {7/6, 5/4, 5/4, 5/4, ...}.

Original entry on oeis.org

2, 4, 13, 157, 24493, 599882557, 359859081592975693, 129498558604939936868397356895854557, 16769876680757063368089314196389622249367851612542961252860614401811693
Offset: 1

Views

Author

N. J. A. Sloane, Sep 14 2024

Keywords

Comments

This sequence and A376186 were discovered by Rémy Sigrist on Sep 09 2024. The two sequences {b(1)=7/6, b(k)=5/4 for k>1} and {b(1)=5/4, b(2*k)=3/2, b(2*k+1)=6/5 for k>0} are the first sequences {b(i)} discovered with the property that the sums S(n) do not converge to numbers of the form (e_n - 1)/e_n as n-> oo.
This is essentially the same sequence as A004168 and A082732.

Crossrefs

Programs

  • Mathematica
    Join[{2}, RecurrenceTable[{a[n+1] == a[n]^2 - a[n] + 1, a[2] == 4}, a, {n, 2, 9}]] (* Amiram Eldar, Sep 15 2024 *)

Formula

a(n+1) = a(n)^2 - a(n) + 1 for n >= 2.

A376184 Lexicographically earliest sequence of positive integers a(1), a(2), a(3), ... such that for any n > 0, S(n) = Sum_{k = 1..n} b(k)/a(k) < 1, where {b(k)} is the sequence b(1)=5/4, b(2*i)=3/2, b(2*i+1)=6/5 (i>0).

Original entry on oeis.org

2, 5, 17, 341, 92753, 10753782821, 92515075960384748177, 10698799099944699918936107506299150093941, 91571441744782016867976366392607084634231243149599342901251284090792487979854033
Offset: 1

Views

Author

N. J. A. Sloane, Sep 15 2024

Keywords

Comments

This sequence and A376062 were discovered by Rémy Sigrist on Sep 09 2024. The two sequences {b(1)=7/6, b(k)=5/4 for k>1} and {b(1)=5/4, b(2*k)=3/2, b(2*k+1)=6/5 for k>0} are the first sequences {b(i)} discovered with the property that the sums S(n) do not converge to numbers of the form (e_n - 1)/e_n as n-> oo.

Examples

			The initial values of S(n) are 5/8, 37/40, 677/680, 231877/231880, 21507565637/21507565640, 231287689900961870437/231287689900961870440, ...
		

Crossrefs

A376186 a(n) = denominator of the sum S(n) defined in A376184.

Original entry on oeis.org

8, 40, 680, 231880, 21507565640, 231287689900961870440, 21397598199889399837872215012598300187880, 228928604361955042169940915981517711585578107873998357253128210226981219949635080
Offset: 1

Views

Author

N. J. A. Sloane, Sep 15 2024

Keywords

Examples

			The initial values of S(n) are 5/8, 37/40, 677/680, 231877/231880, 21507565637/21507565640, 231287689900961870437/231287689900961870440, ...
		

Crossrefs

A298484 Square array A(n,k), n >= 1, k >= 1, read by antidiagonals, where A(n,k) is defined by the following: A(1,k) = k and A(n,k) = A(n-1,k)*(A(n-1,k)+1) for n > 1.

Original entry on oeis.org

1, 2, 2, 3, 6, 6, 4, 12, 42, 42, 5, 20, 156, 1806, 1806, 6, 30, 420, 24492, 3263442, 3263442, 7, 42, 930, 176820, 599882556, 10650056950806, 10650056950806, 8, 56, 1806, 865830, 31265489220, 359859081592975692, 113423713055421844361000442, 113423713055421844361000442
Offset: 1

Views

Author

Seiichi Manyama, Jan 20 2018

Keywords

Examples

			Square array begins:
      1,       2,         3,           4,           5,              6, ...
      2,       6,        12,          20,          30,             42, ...
      6,      42,       156,         420,         930,           1806, ...
     42,    1806,     24492,      176820,      865830,        3263442, ...
   1806, 3263442, 599882556, 31265489220, 74966245730, 10650056950806, ...
		

Crossrefs

Columns k=1..3 give A007018(n-1), A007018, A004168(n-1).
Rows n=1..3 give A000027, A002378, A169938.

Programs

  • Mathematica
    A[1, k_?Positive] := k; A[n_?Positive, k_?Positive] := A[n, k] = A[n - 1, k]*(A[n - 1, k] + 1); Table[A[n - k + 1, k], {n, 1, 9}, {k, n, 1, -1}] // Flatten (* Jean-François Alcover, Feb 05 2018 *)
Showing 1-6 of 6 results.