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.

A328849 Numbers in whose primorial base expansion only even digits appear.

Original entry on oeis.org

0, 4, 12, 16, 24, 28, 60, 64, 72, 76, 84, 88, 120, 124, 132, 136, 144, 148, 180, 184, 192, 196, 204, 208, 420, 424, 432, 436, 444, 448, 480, 484, 492, 496, 504, 508, 540, 544, 552, 556, 564, 568, 600, 604, 612, 616, 624, 628, 840, 844, 852, 856, 864, 868, 900, 904, 912, 916, 924, 928, 960, 964, 972, 976, 984, 988, 1020, 1024
Offset: 1

Views

Author

Antti Karttunen, Oct 30 2019

Keywords

Comments

Numbers for which the prime factor form (A276086) of their primorial base expansion is a square, A000290.

Examples

			144 is written as "4400" in primorial base (A049345), because 4*A002110(3) + 4*A002110(2) + 0*A002110(1) + 0*A002110(0) = 4*30 + 4*6 = 144, thus all the digits are even and 144 is included in this sequence.
		

Crossrefs

Cf. A328834, A328850 (squares in this sequence).
Similar sequences: A005823 (ternary), A014263 (decimal), A062880 (quaternary), A351893 (factorial base).

Programs

  • Mathematica
    With[{max = 5}, bases = Prime@ Range[max, 1, -1]; nmax = Times @@ bases - 1; prmBaseDigits[n_] := IntegerDigits[n, MixedRadix[bases]]; Select[Range[0, nmax, 2], AllTrue[prmBaseDigits[#], EvenQ] &]] (* Amiram Eldar, May 23 2023 *)
  • PARI
    A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
    isA328849(n) = issquare(A276086(n));

Formula

a(n) = 2*A328770(n).
A000196(A276086(a(n))) = A276086(a(n)/2) = A328834(n).

A351894 Numbers that contain only odd digits in their factorial-base representation.

Original entry on oeis.org

1, 3, 9, 21, 33, 45, 81, 93, 153, 165, 201, 213, 393, 405, 441, 453, 633, 645, 681, 693, 873, 885, 921, 933, 1113, 1125, 1161, 1173, 1353, 1365, 1401, 1413, 2313, 2325, 2361, 2373, 2553, 2565, 2601, 2613, 2793, 2805, 2841, 2853, 3753, 3765, 3801, 3813, 3993, 4005
Offset: 1

Views

Author

Amiram Eldar, Feb 24 2022

Keywords

Comments

All the terms above 1 are odd multiples of 3.

Examples

			3 is a term since its factorial-base presentation, 11, has only odd digits.
21 is a term since its factorial-base presentation, 311, has only odd digits.
		

Crossrefs

Subsequence: A007489
Similar sequences: A003462 \ {0} (ternary), A014261 (decimal), A032911 (base 4), A032912 (base 5), A033032 (base 6), A033033 (base 7), A033034 (base 8), A033035 (base 9), A033036 (base 11), A033037 (base 12), A033038 (base 13), A033039 (base 14), A033040 (base 15), A033041 (base 16), A126646 (binary).

Programs

  • Mathematica
    max = 7; fctBaseDigits[n_] := IntegerDigits[n, MixedRadix[Range[max, 2, -1]]]; Select[Range[1, max!, 2], AllTrue[fctBaseDigits[#], OddQ] &]

A351895 Numbers with an equal number of odd and even digits in their factorial-base representation.

Original entry on oeis.org

2, 5, 25, 26, 29, 30, 34, 37, 38, 41, 42, 46, 51, 55, 56, 59, 63, 67, 68, 71, 73, 74, 77, 78, 82, 85, 86, 89, 90, 94, 99, 103, 104, 107, 111, 115, 116, 119, 723, 727, 728, 731, 735, 739, 740, 743, 745, 746, 749, 750, 754, 757, 758, 761, 762, 766, 771, 775, 776
Offset: 1

Views

Author

Amiram Eldar, Feb 24 2022

Keywords

Examples

			5 is a term since its factorial-base representation, 21, has one odd digit, 1, and one even digit, 2.
		

Crossrefs

A138524 is a subsequence.
Similar sequences: A031443 (binary), A227870 (decimal).

Programs

  • Mathematica
    max = 7; fctBaseDigits[n_] := IntegerDigits[n, MixedRadix[Range[max, 2, -1]]]; Select[Range[1, max!], EvenQ[Length[(d = fctBaseDigits[#])]] && Count[d, _?EvenQ] == Length[d]/2 &]

A351896 Numbers k such that k and k+2 both have an equal number of odd and even digits in their factorial-base representations.

Original entry on oeis.org

71, 743, 791, 839, 862, 910, 983, 1031, 1079, 1102, 1150, 1223, 1271, 1319, 1342, 1390, 1583, 1631, 1823, 1871, 2063, 2111, 2183, 2231, 2279, 2302, 2350, 2423, 2471, 2519, 2542, 2590, 2663, 2711, 2759, 2782, 2830, 3023, 3071, 3263, 3311, 3503, 3551, 3623, 3671, 3719
Offset: 1

Views

Author

Amiram Eldar, Feb 24 2022

Keywords

Examples

			71 is a term since the factorial-base representations of 71 and 73 are 2321 and 3001, respectively, and both have 2 odd digits and 2 even digits.
		

Crossrefs

Subsequence of A351895.
Similar sequence: A337238.

Programs

  • Mathematica
    max = 7; fctBaseDigits[n_] := IntegerDigits[n, MixedRadix[Range[max, 2, -1]]]; s = Select[Range[1, max!], EvenQ[Length[(d = fctBaseDigits[#])]] && Count[d, _?EvenQ] == Length[d]/2 &]; ind = Position[Differences[s], 2] // Flatten; s[[ind]]
Showing 1-4 of 4 results.