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

A346434 Triangle read by rows of numbers with n 1's and n 0's in their representation in base of Fibonacci numbers (A210619), written as those 1's and 0's.

Original entry on oeis.org

10, 1001, 1010, 100101, 101001, 101010, 10010101, 10100101, 10101001, 10101010, 1001010101, 1010010101, 1010100101, 1010101001, 1010101010, 100101010101, 101001010101, 101010010101, 101010100101, 101010101001, 101010101010
Offset: 1

Views

Author

Kevin Ryde, Jul 18 2021

Keywords

Comments

The digits of T(n,k) are k pairs 10 followed by n-k pairs 01.

Examples

			Triangle begins:
        k=1       k=2       k=3       k=4
  n=1:  10
  n=2:  1001,     1010,
  n=3:  100101,   101001,   101010,
  n=4:  10010101, 10100101, 10101001, 10101010
  ...
For n=5,k=3, the 10 and 01 digit pairs are
           vvvvvv          k  = 3 pairs 10
  T(5,3) = 1010100101
                 ^^^^     n-k = 2 pairs 01
		

Crossrefs

Cf. A210619, A163662 (main diagonal), A014417 (Zeckendorf digits).

Programs

  • PARI
    T(n,k) = (10*100^n - 9*100^(n-k)) \ 99;

Formula

T(n,k) = (10*100^n - 9*100^(n-k) - 1)/99, for n>=1 and 1 <= k <= n.
T(n,k) = A014417(A210619(n,k)).
T(n,n) = A163662(n).
G.f.: x*y*(10 - 9*x - 100*x^2*y) / ((1-x) * (1-100*x) * (1-x*y) * (1-100*x*y) ).

A342727 Digitally balanced numbers in base i-1: numbers that in base i-1 have the same number of 0's as 1's.

Original entry on oeis.org

2, 21, 26, 31, 36, 41, 46, 51, 310, 315, 325, 330, 335, 340, 345, 350, 355, 360, 365, 370, 375, 390, 395, 405, 410, 415, 420, 425, 430, 435, 455, 470, 475, 485, 490, 495, 535, 550, 555, 565, 570, 575, 580, 585, 590, 595, 600, 605, 610, 620, 625, 630, 635, 645
Offset: 1

Views

Author

Amiram Eldar, Mar 19 2021

Keywords

Examples

			2 is a term since its representation in base i-1, 1100, has 2 0's and 2 1's.
21 is a term since its representation in base i-1, 110011010001, has 6 0's and 6 1's.
		

Crossrefs

Similar sequences: A031443 (binary), A210619 (Zeckendorf).

Programs

  • Mathematica
    v = {{0, 0, 0, 0}, {0, 0, 0, 1}, {1, 1, 0, 0}, {1, 1, 0, 1}}; balQ[n_] := Plus @@ (d = IntegerDigits[n]) == Length[d]/2; q[n_] := balQ @ FromDigits[Flatten@v[[1 + Reverse @ Most[Mod[NestWhileList[(# - Mod[#, 4])/-4 &, n, # != 0 &], 4]]]]]; Select[Range[1000], q]

A327911 Numbers with equal counts of 1's and 0's in both their binary and Zeckendorf representations.

Original entry on oeis.org

2, 135, 142, 842, 2206, 2439, 2575, 2583, 39602, 43783, 46312, 46364, 831052, 831662, 831984, 832039, 2177931, 2178253, 14929974, 39070457, 39088024, 228826126, 252983943, 267913308, 267914292, 701090921, 701391021, 701408355, 701408588, 12483934869, 12585436984, 12586268880
Offset: 1

Views

Author

Alex Ratushnyak, Nov 13 2019

Keywords

Comments

Intersection of A031443 and A210619.

Crossrefs

A344345 Digitally balanced numbers in Gray code: numbers whose binary reflected Gray code has the same number of 0's as 1's.

Original entry on oeis.org

3, 8, 12, 14, 33, 35, 39, 47, 49, 51, 55, 57, 59, 61, 130, 132, 134, 136, 140, 142, 144, 152, 156, 158, 160, 176, 184, 188, 190, 194, 196, 198, 200, 204, 206, 208, 216, 220, 222, 226, 228, 230, 232, 236, 238, 242, 244, 246, 250, 517, 521, 523, 525, 529, 531, 535
Offset: 1

Views

Author

Amiram Eldar, May 15 2021

Keywords

Examples

			8 is a term since its Gray code, 1100, has 2 0's and 2 1's.
33 is a term since its Gray code, 110001, has 3 0's and 3 1's.
		

Crossrefs

Similar sequences: A031443 (binary), A210619 (Zeckendorf), A342727 (base i-1).

Programs

  • Mathematica
    gc[n_] := gc[n] = If[n <= 1, n, 2^(b = Floor@Log2[n]) + gc[2^(b + 1) - 1 - n]]; gcDigBalQ[n_] := Equal @@ DigitCount[gc[n], 2, {0, 1}]; Select[Range[500], gcDigBalQ]
Showing 1-4 of 4 results.