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.

Previous Showing 11-14 of 14 results.

A006943 Rows of Sierpiński's triangle (Pascal's triangle mod 2).

Original entry on oeis.org

1, 11, 101, 1111, 10001, 110011, 1010101, 11111111, 100000001, 1100000011, 10100000101, 111100001111, 1000100010001, 11001100110011, 101010101010101, 1111111111111111, 10000000000000001, 110000000000000011
Offset: 0

Views

Author

Keywords

Comments

The rows of Sierpiński's triangle, read as numbers in binary representation, are products of distinct Fermat numbers, row 0 being the empty product. (See also the comment in A080176.)
Rows 1 to 31 are the binary representation of the 31 (2^5-1) nonempty products of distinct Fermat primes, giving the number of sides of constructible (with straightedge and compass) odd-sided polygons. - Daniel Forgues, Jun 21 2011
Sierpiński's triangles typically refer to any finite triangle with rows 0 to 2^n-1 so as to get complete triangles, with n at least 4 so as to show the fractal-like pattern of nested triangles. We may consider these finite Sierpiński's triangles as finite parts of "the" infinite Sierpiński's triangle, so to speak. - Daniel Forgues, Jun 22 2011
Also, binary representation of the n-th iteration of the "Rule 60" elementary cellular automaton starting with a single ON (black) cell. - Robert Price, Feb 21 2016
a(n) is the concatenation of the coefficients of (x+1)^n in GF(2)[x]. - Thomas Anton, Oct 04 2022
Subsequence of A057148. - Chai Wah Wu, Jul 30 2025

Examples

			From _Daniel Forgues_, Jun 20 2011: (Start)
Terms as products of distinct Fermat numbers in binary representation (Cf. A080176 comment) (Cf. Sierpiński's triangle on OEIS Wiki):
a(0) = 1 = (empty product);
a(1) = 11 = F_0;
a(2) = 101 = F_1;
a(3) = 1111 = 11*101 = F_0*F_1;
a(4) = 10001 = F_2;
a(5) = 110011 = 11*10001 = F_0*F_2;
a(6) = 1010101 = 101*10001 = F_1*F_2;
a(7) = 11111111 = 11*101*10001 = F_0*F_1*F_2. (End)
		

References

  • C. Pickover, Mazes for the Mind, St. Martin's Press, NY, 1992, p. 353.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • S. Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 55.

Crossrefs

Cf. A001317 (decimal representation).
Cf. A080176 (Fermat numbers in binary).

Programs

  • Maple
    A006943 := proc(n) local k; add((binomial(n,k) mod 2)*10^k, k=0..n); end;
  • Mathematica
    f[n_] := FromDigits@ Mod[Binomial[n, Range[0, n]], 2]; Array[f, 17, 0] (* Robert G. Wilson v, Jun 26 2011 *)
  • Python
    def A006943(n): return sum((bool(~n&n-k)^1)*10**k for k in range(n+1)) # Chai Wah Wu, May 03 2023

Formula

From Daniel Forgues, Jun 20-21 2011: (Start)
In the following formulas, [...]_2 means converted to base 2.
a(n) = [Sum_{i=0..n} (binomial(n,i) mod 2) 2^i]_2, n >= 0.
From row n, 0 <= n <= 2^k - 1, k >= 0, being
a(n) = [Product_{i=0..k-1} (F_i)^(alpha_i)]_2, alpha_i in {0, 1},
where for k = 0, we get the empty product, i.e., 1, giving a(0) = 1,
we induce from the triangle that row 2^k + n, 0 <= n <= 2^k - 1, is
a(2^k + n) = a(n)*[F_k]_2, k >= 0.
Denton Hewgill's identity (cf. links):
a(n) = [Product_{i>=0} (F_i)^(floor(n/2^i) mod 2)]_2, F_i = 2^(2^i)+1.
a(0) = 1; a(n) = [Product_{i=0..floor(log_2(n))} (F_i)^(floor(n/2^i) mod 2)]_2, F_i = 2^(2^i)+1, n >= 1. (End)
From Vladimir Shevelev, Dec 26-27 2013: (Start)
Sum_{n>=0} 1/a(n)^r = Product_{k>=0} (1 + 1/(10^(2^k)+1)^r),
Sum_{n>=0} (-1)^A000120(n)/a(n)^r = Product_{k>=0} (1 - 1/(10^(2^k)+1)^r), where r > 0 is a real number.
In particular,
Sum_{n>=0} 1/a(n) = Product_{k>=0} (1 + 1/(10^(2^k)+1)) = 1.10182034...;
Sum_{n>=0} (-1)^A000120(n)/a(n) = 0.9;
a(2^n) = 10^(2^n) + 1, n >= 0.
Note that analogs of Stephan's limit formulas (see Shevelev link) reduce to the relations a(2^t*n+2^(t-1)) = 99*(10^(2^(t-1)+1))/(10^(2^(t-1))-1) * a(2^t*n+2^(t-1)-2), t >= 2. In particular, for t=2,3,4, we have the following formulas:
a(4*n+2) = 101*a(4*n);
a(8*n+4) = (10001/101)*a(8*n+2);
a(16*n+8) = (100000001/1010101)*(16*n+6), etc. (End)
From Tom Edgar, Oct 11 2015: (Start)
a(2*n+1) = 11*a(2*n).
a(n) = Product_{b_j != 0} a(2^j) where n = Sum_{j>=0} b_j*2^j is the binary representation of n.
(End)

Extensions

More terms from James Sellers, Aug 21 2000
Edited by Daniel Forgues, Jun 20 2011

A275381 Number of prime factors (with multiplicity) of generalized Fermat number 10^(2^n) + 1.

Original entry on oeis.org

1, 1, 2, 2, 5, 4, 3, 4, 5
Offset: 0

Views

Author

Arkadiusz Wesolowski, Jul 25 2016

Keywords

Examples

			b(n) = 10^(2^n) + 1.
Complete Factorizations
b(0) = 11
b(1) = 101
b(2) = 73*137
b(3) = 17*5882353
b(4) = 353*449*641*1409*69857
b(5) = 19841*976193*6187457*834427406578561
b(6) = 1265011073*
       15343168188889137818369*515217525265213267447869906815873
b(7) = 257*15361*453377*P116
b(8) = 10753*8253953*9524994049*73171503617*P225
		

Crossrefs

Programs

  • Mathematica
    Table[PrimeOmega[10^(2^n) + 1], {n, 0, 6}] (* Michael De Vlieger, Jul 26 2016 *)
  • PARI
    a(n) = bigomega(factor(10^(2^n)+1))

Formula

a(n) = A001222(A080176(n)). - Felix Fröhlich, Jul 25 2016

A157715 Primes sorted on digit sums, then on the primes.

Original entry on oeis.org

2, 11, 101, 3, 13, 31, 103, 211, 1021, 1201, 2011, 3001, 10111, 20011, 20101, 21001, 100003, 102001, 1000003, 1011001, 1020001, 1100101, 2100001, 10010101, 10100011, 20001001, 30000001, 101001001, 200001001, 1000000021, 1000001011
Offset: 1

Views

Author

Lekraj Beedassy, Mar 04 2009

Keywords

Comments

Beyond n = 4, a(n) is believed to coincide with A062339.
Only correct for n >= 4 if an undiscovered prime of digit sum two (which would have to be a member of A080176) does not exist; this is conjectured but not proved. - Jeppe Stig Nielsen, Mar 30 2018

Examples

			There are only three primes with a digit sum of 2, and those are 2, 11, 101. Therefore these three primes are the first three terms of this sequence.
There is only one prime with a digit sum of 3, and that's 3 itself. Any higher number with a digit sum of 3 is a nontrivial multiple of 3 and therefore composite.
Then follows the first prime with a digit sum of 4, which is 13.
		

Crossrefs

Cf. A062341.

Programs

  • Mathematica
    Prime@ Flatten@ Values@ Take[KeySort@ PositionIndex[Total@ IntegerDigits@ # & /@ Prime@ Range[10^7]], 3] (* Michael De Vlieger, Apr 07 2018 *)

Extensions

Comment edited by Robert Israel, Dec 28 2015

A345369 Lexicographically earliest sequence of distinct positive integers such that for any n > 0, the product of the first n terms can be computed without carry in base 10.

Original entry on oeis.org

1, 2, 3, 10, 11, 100, 101, 1000, 10000, 10001, 100000, 1000000, 10000000, 100000000, 100000001, 1000000000, 10000000000, 100000000000, 1000000000000, 10000000000000, 100000000000000, 1000000000000000, 10000000000000000, 10000000000000001, 100000000000000000
Offset: 1

Views

Author

Rémy Sigrist, Jun 16 2021

Keywords

Comments

This sequence is a variant of A278742; here we multiply, there we add.
This sequence is the union of {2, 3}, A080176 and A011557.

Examples

			The first terms, alongside their product, are:
  n   a(n)   a(1) * ... * a(n)
  --  -----  ------------------
   1      1                   1
   2      2                   2
   3      3                   6
   4     10                  60
   5     11                 660
   6    100               66000
   7    101             6666000
   8   1000          6666000000
   9  10000      66660000000000
  10  10001  666666660000000000
		

Crossrefs

Previous Showing 11-14 of 14 results.