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.

A370853 Numbers m such that c(0) < c(1) < c(2), where c(k) = number of k's in the ternary representation of m.

Original entry on oeis.org

17, 23, 25, 53, 71, 77, 79, 134, 152, 158, 160, 161, 206, 212, 214, 215, 230, 232, 233, 238, 239, 241, 296, 314, 320, 322, 350, 386, 398, 402, 404, 422, 428, 430, 440, 452, 456, 458, 464, 466, 470, 474, 476, 478, 480, 482, 484, 485, 530, 536, 538, 554, 556
Offset: 1

Views

Author

Clark Kimberling, Mar 03 2024

Keywords

Examples

			The ternary representation of 17 is 122, for which c(0)=0 < c(1)=1 < c(2)=2.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[1000], DigitCount[#, 3, 0] < DigitCount[#, 3, 1] < DigitCount[#, 3, 2] &]
  • PARI
    check(m) = {my(c0=0, c1=0, c2=0, s=Vec(digits(m, 3)));
    for(i=1, length(s), if(s[i]==0, c0+=1, if(s[i]==1, c1+=1, if(s[i]==2, c2+=1,))));
    c0John Tyler Rascoe, Mar 11 2024

A370859 Numbers m such that c(0) < c(1) > c(2), where c(k) = number of k's in the ternary representation of m.

Original entry on oeis.org

1, 4, 10, 12, 13, 14, 16, 22, 31, 32, 34, 37, 38, 39, 40, 41, 42, 43, 46, 48, 49, 58, 64, 66, 67, 85, 91, 93, 94, 95, 97, 103, 109, 111, 112, 113, 115, 117, 118, 119, 120, 121, 122, 123, 124, 125, 127, 129, 130, 131, 133, 139, 145, 147, 148, 149, 151, 157
Offset: 1

Views

Author

Clark Kimberling, Mar 03 2024

Keywords

Examples

			The ternary representation of 16 is 121, for which c(0)=0 < c(1)=2 > c(2)=1.
		

Crossrefs

Programs

  • Maple
    filter:= proc(n) local L,m;
    L:= convert(n,base,3); m:= numboccur(1,L);
    numboccur(0,L) < m and numboccur(2,L) < m
    end proc:
    select(filter, [$1 .. 200]); # Robert Israel, Mar 03 2024
  • Mathematica
    Select[Range[1000], DigitCount[#, 3, 0] < DigitCount[#, 3, 1] > DigitCount[#, 3, 2] &]

A370863 Numbers m such that c(0) > c(1) < c(2), where c(k) = number of k's in the ternary representation of m.

Original entry on oeis.org

6, 18, 20, 24, 54, 56, 60, 62, 72, 74, 78, 89, 101, 105, 137, 141, 153, 162, 164, 167, 168, 169, 170, 173, 177, 180, 181, 182, 183, 186, 188, 191, 195, 207, 216, 217, 218, 219, 222, 224, 225, 234, 236, 240, 251, 263, 267, 269, 299, 303, 305, 315, 317, 321
Offset: 1

Views

Author

Clark Kimberling, Mar 09 2024

Keywords

Examples

			The ternary representation of 20 is 202, for which c(0)=1 > c(1)=0 < c(2)=2.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[1000], DigitCount[#, 3, 0] > DigitCount[#, 3, 1] < DigitCount[#, 3, 2] &]

A370871 Numbers m such that c(0) >= c(1) > c(2), where c(k) = number of k's in the ternary representation of m.

Original entry on oeis.org

3, 9, 27, 28, 30, 36, 81, 82, 84, 86, 88, 90, 92, 96, 100, 102, 108, 110, 114, 126, 136, 138, 144, 166, 172, 174, 190, 192, 198, 243, 244, 246, 247, 248, 250, 252, 253, 254, 255, 258, 262, 264, 270, 271, 272, 273, 276, 279, 288, 298, 300, 306, 324, 325, 326
Offset: 1

Views

Author

Clark Kimberling, Mar 11 2024

Keywords

Examples

			The ternary representation of 84 is 10010, for which c(0)=3 >= c(1)=2 > c(2)=0.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[1000], DigitCount[#, 3, 0] >= DigitCount[#, 3, 1] > DigitCount[#, 3, 2] &]

A370872 Positive integers m such that c(0) > c(1) >= c(2), where c(k) = number of k's in the ternary representation of m.

Original entry on oeis.org

9, 27, 29, 33, 45, 55, 57, 63, 81, 82, 83, 84, 87, 90, 99, 108, 135, 163, 165, 171, 189, 243, 244, 245, 246, 248, 249, 250, 252, 254, 258, 261, 262, 264, 270, 272, 276, 288, 297, 298, 300, 306, 324, 326, 330, 342, 378, 405, 406, 408, 414, 432, 487, 489, 490
Offset: 1

Views

Author

Clark Kimberling, Mar 13 2024

Keywords

Examples

			The ternary representation of 84 is 10010, for which c(0)=3 > c(1)=2 >= c(2)=0.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[1000], DigitCount[#, 3, 0] > DigitCount[#, 3, 1] >= DigitCount[#, 3, 2] &]

A370873 Positive integers m such that c(0) >= c(1) >= c(2), where c(k) = number of k's in the ternary representation of m.

Original entry on oeis.org

3, 9, 11, 15, 19, 21, 27, 28, 29, 30, 33, 36, 45, 55, 57, 63, 81, 82, 83, 84, 86, 87, 88, 90, 92, 96, 99, 100, 102, 108, 110, 114, 126, 135, 136, 138, 144, 163, 165, 166, 171, 172, 174, 189, 190, 192, 198, 243, 244, 245, 246, 247, 248, 249, 250, 252, 253
Offset: 1

Views

Author

Clark Kimberling, Mar 13 2024

Keywords

Examples

			The ternary representation of 84 is 10010, for which c(0)=3 >= c(1)=2 >= c(2)=0.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[1000], DigitCount[#, 3, 0] >= DigitCount[#, 3, 1] >= DigitCount[#, 3, 2] &]
Showing 1-6 of 6 results.