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

A051179 a(n) = 2^(2^n) - 1.

Original entry on oeis.org

1, 3, 15, 255, 65535, 4294967295, 18446744073709551615, 340282366920938463463374607431768211455, 115792089237316195423570985008687907853269984665640564039457584007913129639935
Offset: 0

Views

Author

Alan DeKok (aland(AT)ox.org)

Keywords

Comments

In a tree with binary nodes (0, 1 children only), the maximum number of unique child nodes at level n.
Number of binary trees (each vertex has 0, or 1 left, or 1 right, or 2 children) such that all leaves are at level n. Example: a(1) = 3 because we have (i) root with a left child, (ii) root with a right child and (iii) root with two children. a(n) = A000215(n) - 2. - Emeric Deutsch, Jan 20 2004
Similarly, this is also the number of full balanced binary trees of height n. (There is an obvious 1-to-1 correspondence between the two sets of trees.) - David Hobby (hobbyd(AT)newpaltz.edu), May 02 2010
Partial products of A000215.
The first 5 terms n (only) have the property that phi(n)=(n+1)/2, where phi(n) = A000010(n) is Euler's totient function. - Lekraj Beedassy, Feb 12 2007
If A003558(n) is of the form 2^n and A179480(n+1) is even, then (2^(A003558(n)) - 1) is in A051179. Example: A003558(25) = 8 with A179480(25) = 4, even. Then (2^8 - 1) = 255. - Gary W. Adamson, Aug 20 2012
For any odd positive a(0), the sequence defined by a(n) = a(n-1) * (a(n-1) + 2) gives a constructive proof that there exist integers with at least n distinct prime factors, e.g., a(n), since omega(a(n)) >= n. As a corollary, this gives a constructive proof of Euclid's theorem stating that there are infinitely many primes. - Daniel Forgues, Mar 07 2017
From Sergey Pavlov, Apr 24 2017: (Start)
I conjecture that, for n > 7, omega(a(n)) > omega(a(n-1)) > n.
It seems that the largest prime divisor p(n+1) of a(n+1) is always bigger than the largest prime divisor of a(n): p(n+1) > p(n). For 3 < n < 8, p(n+1) > 100 * p(n).
(End)
It appears that a(n) is the integer whose bits indicate the possible subset sums of the first n powers of two. For another example, see the calculation for primes at A368491 - Yigit Oktar, Mar 20 2025

Examples

			15 = 3*5; 255 = 3*5*17; 65535 = 3*5*17*257; ... - _Daniel Forgues_, Mar 07 2017
		

References

  • M. Aigner and G. M. Ziegler, Proofs from The Book, Springer-Verlag, Berlin, 1999; see p. 4.

Crossrefs

Programs

Formula

a(n) = A000215(n) - 2.
a(n) = (a(n-1) + 1)^2 - 1, a(0) = 1. [ or a(n) = a(n-1)(a(n-1) + 2) ].
1 = 2/3 + 4/15 + 16/255 + 256/65535 + ... = Sum_{n>=0} A001146(n)/a(n+1) with partial sums: 2/3, 14/15, 254/255, 65534/65535, ... - Gary W. Adamson, Jun 15 2003
a(n) = b(n-1) where b(1)=1, b(n) = Product_{k=1..n-1} (b(k) + 2). - Benoit Cloitre, Sep 13 2003
A136308(n) = A007088(a(n)). - Jason Kimberley, Dec 19 2012
A000215(n) = a(n+1) / a(n). - Daniel Forgues, Mar 07 2017
Sum_{n>=0} 1/a(n) = A048649. - Amiram Eldar, Oct 27 2020

A382279 a(n) is the integer whose bits encode subset sums of the first n arithmetic numbers (A003601).

Original entry on oeis.org

1, 3, 27, 891, 57339, 7340027, 15032385531, 123145302310907, 2017612633061982203, 66113130760175032991739, 8665580274997661924293869563, 4543259751217974174964184288067579, 4763953136893138488487244504044754960379, 9990733848941719167408001786146465954679226363
Offset: 0

Views

Author

Yigit Oktar, Mar 20 2025

Keywords

Comments

Bit position 0 (which is sum 0) is the least significant bit of a(n).
The resulting binary string is palindromic for all n. A subset sum of zero marks one end of the binary string, while the sum of the first n arithmetic numbers marks the other end. This is true for all sets of positive integers. See A368491 for the encoding applied to the first n primes.

Examples

			For n = 0, there are no terms from which to calculate a subset sum. An empty array gives zero as the only possible sum. This is designated by the binary string 1.
For n = 2, sums of 0, 1, 3, 4 are possible, yielding a binary string of 11011, which has a value of 27 in base 10. The impossibility of the sum 2 is indicated by 0 in the binary string.
For n = 3, the arithmetic numbers are 1,3,5 and their subset sums 0, 1, 3, 4, 5, 6, 8, 9 are the positions of 1 bits in a(3) = 891.
		

Crossrefs

Programs

  • Maple
    b:= proc(n) option remember; uses numtheory; local k; for k from 1+
         `if`(n=1, 0, b(n-1)) while irem(sigma(k), tau(k))>0 do od; k
        end:
    a:= proc(n) option remember; `if`(n=0, 1,
          Bits[Or](a(n-1), a(n-1)*2^b(n)))
        end:
    seq(a(n), n=0..20);  # Alois P. Heinz, Mar 20 2025
  • Python
    from sympy import divisors, divisor_count
    n = 20
    tn  = [a for a in range(1, n) if not sum(divisors(a)) % divisor_count(a)] #code from A003601
    res = 1
    a = []
    a.append(res)
    for v in tn:
      res = (res | (res << v))
      a.append(res)
    print(a)

Formula

a(n) = a(n-1) OR a(n-1)*2^A003601(n) for n>=1, a(0) = 1.
Showing 1-2 of 2 results.