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.

A284632 Numbers n with digits 2 and 6 only.

Original entry on oeis.org

2, 6, 22, 26, 62, 66, 222, 226, 262, 266, 622, 626, 662, 666, 2222, 2226, 2262, 2266, 2622, 2626, 2662, 2666, 6222, 6226, 6262, 6266, 6622, 6626, 6662, 6666, 22222, 22226, 22262, 22266, 22622, 22626, 22662, 22666, 26222, 26226, 26262, 26266, 26622, 26626
Offset: 1

Views

Author

Jaroslav Krizek, Mar 30 2017

Keywords

Comments

All terms after 2 are composite.

Crossrefs

Cf. A032917.
Numbers n with digits 6 and k only for k = 0..5 and 7..9: A204093 (k = 0), A284293 (k = 1), this sequence (k = 2), A284633 (k = 3), A284634 (k = 4), A256291 (k = 5), A256292 (k = 7), A284635 (k = 8), A284636 (k = 9).

Programs

  • Magma
    [n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {2, 6}]
  • Mathematica
    Table[Map[FromDigits, Tuples[{2, 6}, {k}]], {k, 5}] // Flatten (* Michael De Vlieger, Mar 30 2017 *)

Formula

a(n) = 2 * A032917(n).

A284634 Numbers with digits 4 and 6 only.

Original entry on oeis.org

4, 6, 44, 46, 64, 66, 444, 446, 464, 466, 644, 646, 664, 666, 4444, 4446, 4464, 4466, 4644, 4646, 4664, 4666, 6444, 6446, 6464, 6466, 6644, 6646, 6664, 6666, 44444, 44446, 44464, 44466, 44644, 44646, 44664, 44666, 46444, 46446, 46464, 46466, 46644, 46646
Offset: 1

Views

Author

Jaroslav Krizek, Apr 02 2017

Keywords

Comments

All terms are even.

Crossrefs

Numbers n with digits 6 and k only for k = 0 - 5 and 7 - 9: A204093 (k = 0), A284293 (k = 1), A284632 (k = 2), A284633 (k = 3), this sequence (k = 4), A256291 (k = 5), A256292 (k = 7), A284635 (k = 8), A284636 (k = 9).

Programs

  • Magma
    [n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {4, 6}]
  • Mathematica
    Table[FromDigits /@ Tuples[{4, 6}, n], {n, 5}] // Flatten (* or *)
    Select[Range@ 50000, Total@ Pick[DigitCount@ #, {0, 0, 0, 1, 0, 1, 0, 0, 0, 0}, 0] == 0 &] (* Michael De Vlieger, Apr 02 2017 *)

Formula

a(n) = 2 * A032810(n).

A284633 Numbers n with digits 3 and 6 only.

Original entry on oeis.org

3, 6, 33, 36, 63, 66, 333, 336, 363, 366, 633, 636, 663, 666, 3333, 3336, 3363, 3366, 3633, 3636, 3663, 3666, 6333, 6336, 6363, 6366, 6633, 6636, 6663, 6666, 33333, 33336, 33363, 33366, 33633, 33636, 33663, 33666, 36333, 36336, 36363, 36366, 36633, 36636
Offset: 1

Views

Author

Jaroslav Krizek, Mar 30 2017

Keywords

Comments

All terms after 3 are composite.

Crossrefs

Cf. A007931.
Numbers n with digits 6 and k only for k = 0..5 and 7..9: A204093 (k = 0), A284293 (k = 1), A284632 (k = 2), this sequence (k = 3), A284634 (k = 4), A256291 (k = 5), A256292 (k = 7), A284635 (k = 8), A284636 (k = 9).

Programs

  • Magma
    [n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {3, 6}]
  • Mathematica
    Table[Map[FromDigits, Tuples[{3, 6}, {k}]], {k, 5}] // Flatten (* Michael De Vlieger, Mar 30 2017 *)

Formula

a(n) = 3*A007931(n). - Michel Marcus, Mar 30 2017

A284635 Numbers with digits 6 and 8 only.

Original entry on oeis.org

6, 8, 66, 68, 86, 88, 666, 668, 686, 688, 866, 868, 886, 888, 6666, 6668, 6686, 6688, 6866, 6868, 6886, 6888, 8666, 8668, 8686, 8688, 8866, 8868, 8886, 8888, 66666, 66668, 66686, 66688, 66866, 66868, 66886, 66888, 68666, 68668, 68686, 68688, 68866, 68868
Offset: 1

Views

Author

Jaroslav Krizek, Apr 02 2017

Keywords

Comments

All terms are even.

Crossrefs

Cf. A032834.
Numbers n with digits 6 and k only for k = 0 - 5 and 7 - 9: A204093 (k = 0), A284293 (k = 1), A284632 (k = 2), A284633 (k = 3), A284634 (k = 4), A256291 (k = 5), A256292 (k = 7), this sequence (k = 8), A284636 (k = 9).

Programs

  • Magma
    [n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {6, 8}]
    
  • Mathematica
    Table[FromDigits /@ Tuples[{6, 8}, n], {n, 5}] // Flatten (* or *)
    Select[Range@ 70000, Total@ Pick[DigitCount@ #, {0, 0, 0, 0, 0, 1, 0, 1, 0, 0}, 0] == 0 &] (* Michael De Vlieger, Apr 02 2017 *)
  • Python
    def a(n): return int(bin(n+1)[3:].replace('0', '6').replace('1', '8'))
    print([a(n) for n in range(1, 45)]) # Michael S. Branicky, Jun 08 2021

Formula

a(n) = 2 * A032834(n).
Showing 1-4 of 4 results.