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-10 of 12 results. Next

A329420 Numbers all of whose divisors are binary palindromes (A329419) with a record number of divisors.

Original entry on oeis.org

1, 3, 9, 15, 45, 189, 765, 48573, 196605, 3183328701, 12884901885
Offset: 1

Views

Author

Amiram Eldar, Nov 29 2019

Keywords

Comments

A number m is in this sequence if it is in A329419, and d(m) > d(k) for all terms k < m in A329419, where d(m) is the number of divisors of m (A000005).
The corresponding record numbers of divisors are 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, ...
Apparently, the record values are the only values of the number of divisors of the terms of A329419 (checked for all the terms of A329419 below a(11)).

Crossrefs

Subsequence of A006995 and A329419.
Cf. A000005.

Programs

  • Mathematica
    binPalQ[n_] := PalindromeQ @ IntegerDigits[n, 2];
    binAllDivPalQ[n_] := binPalQ[n] && AllTrue[Most @ Divisors[n], binPalQ];
    divNumMax = 0; seq={}; Do[If[binAllDivPalQ[n] && (divNum = DivisorSigma[0, n]) > divNumMax, divNumMax = divNum; AppendTo[seq, n]],{n, 1, 2*10^5}]; seq

A337741 Numbers all of whose divisors are Niven numbers (A005349).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 18, 20, 21, 24, 27, 36, 40, 54, 63, 72, 81, 108, 162, 216, 243, 324, 486, 648, 972, 1944
Offset: 1

Views

Author

Amiram Eldar, Sep 17 2020

Keywords

Comments

Since the only prime Niven numbers are the single-digit primes 2, 3, 5 and 7, all the terms are 7-smooth numbers (A002473).
If k is a term, all the divisors of k are also terms. Since all the terms are 7-smooth, every term is of the form p * k, where p is in {2, 3, 5, 7} and k is a smaller term. Thus it is easy to verify that there are only 31 terms in this sequence, and 1944 being the last term.

Examples

			6 is a term since all the divisors of 6, i.e., 1, 2, 3 and 6, are Niven numbers.
		

Crossrefs

Subsequence of A002473 and A005349.
Similar sequences: A062687, A190217, A329419.

Programs

  • Mathematica
    nivenQ[n_] := Divisible[n, Plus @@ IntegerDigits[n]]; allQ[n_] := AllTrue[Divisors[n], nivenQ]; p = {1, 2, 3, 5, 7}; s = {1}; n = 0; While[Length[s] != n, n = Length[s]; s = Select[Union @ Flatten @ Outer[Times, s, p], allQ]]; s

A355773 Numbers all of whose divisors are members of A333369.

Original entry on oeis.org

1, 3, 5, 7, 9, 13, 15, 17, 19, 31, 35, 37, 39, 51, 53, 57, 59, 71, 73, 79, 91, 93, 95, 97, 111, 137, 139, 153, 157, 159, 173, 179, 193, 197, 221, 223, 227, 229, 317, 333, 359, 371, 379, 395, 397, 443, 449, 519, 537, 571, 579, 591, 593, 661, 663, 669, 719, 739
Offset: 1

Views

Author

Bernard Schott, Jul 18 2022

Keywords

Comments

All terms are necessarily odd because 2 is not in A333369

Examples

			111 is a term since all the divisors of 111, i.e., 1, 3, 37 and 111, are in A333369.
		

Crossrefs

Similar sequences: A062687, A190217, A329419, A337741
.
Subsequences: A155045, A355853.

Programs

  • Mathematica
    simQ[n_] := AllTrue[Tally @ IntegerDigits[n], EvenQ[Plus @@ #] &]; Select[Range[1000], AllTrue[Divisors[#], simQ] &] (* Amiram Eldar, Jul 19 2022 *)
  • PARI
    issimber(m) = my(d=digits(m), s=Set(d)); for (i=1, #s, if (#select(x->(x==s[i]), d) % 2 != (s[i] % 2), return (0))); return (1); \\ A333369
    isok(k) = fordiv(k, d, if (!issimber(d), return(0))); return(1); \\ Michel Marcus, Jul 19 2022
    
  • Python
    from sympy import divisors, isprime
    def c(n): s = str(n); return all(s.count(d)%2 == int(d)%2 for d in set(s))
    def ok(n): return n > 0 and all(c(d) for d in divisors(n, generator=True))
    print([k for k in range(740) if ok(k)]) # Michael S. Branicky, Jul 24 2022

A337941 Numbers whose divisors are all Zuckerman numbers (A007602).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 15, 24, 1111111111111111111, 11111111111111111111111
Offset: 1

Views

Author

Bernard Schott, Oct 01 2020

Keywords

Comments

Inspired by A337741.
Zuckerman numbers are numbers that are divisible by the product of their digits (see link).
The next term is the repunit prime R_317 which is too large to include in the data.
Primes in this sequence are 2, 3, 5, 7 and all the repunit primes (see A004023).
This sequence is infinite if and only if there are infinitely many repunit primes.

Examples

			6 is a term since all the divisors of 6, i.e., 1, 2, 3 and 6, are Zuckerman numbers.
		

Crossrefs

Subsequence of A007602.
Similar sequences: A062687, A190217, A308851, A329419, A337741.
Cf. A004022 (subsequence of prime repunits).

Programs

  • Mathematica
    zuckQ[n_] := (prod = Times @@ IntegerDigits[n]) > 0 && Divisible[n, prod]; Select[Range[24], AllTrue[Divisors[#], zuckQ] &] (* Amiram Eldar, Oct 01 2020 *)
  • PARI
    isok(m) = {fordiv(m, d, my(p=vecprod(digits(d))); if (!p || (d % p), return (0))); return (1);} \\ Michel Marcus, Oct 05 2020

A330815 Numbers with a record number of divisors whose binary expansion is palindromic.

Original entry on oeis.org

1, 3, 9, 15, 45, 135, 189, 315, 495, 765, 2079, 3465, 4095, 8415, 12285, 45045, 69615, 135135, 405405, 528255, 675675, 765765, 2297295, 5810805, 11486475, 17432415, 29054025, 32927895, 43648605, 50331645, 98783685, 184549365, 296351055, 392837445, 553648095
Offset: 1

Views

Author

Amiram Eldar, Jan 01 2020

Keywords

Comments

Indices of records of A175242.
The corresponding number of binary palindromic divisors are 1, 2, 3, 4, 6, 7, 8, 9, 10, 12, 13, 15, 17, 18, 22, 26, 27, 33, 34, 35, 37, 39, 47, 50, 51, 54, 55, 56, 57, 60, 70, 71, 74, 76, 90, ...

Examples

			9 is a term since it has 3 binary palindromic divisors, 1, 3 and 9, whose binary representations are 1, 11 and 1001. All the numbers below 9 have less than 3 binary palindromic divisors.
		

Crossrefs

Programs

  • Mathematica
    binPalDiv[n_] := DivisorSum[n, 1 &, PalindromeQ @ IntegerDigits[#, 2] &];  bmax = 0; seq = {}; Do[b = binPalDiv[n]; If[b > bmax, bmax = b; AppendTo[seq, n]], {n, 1, 10^5}]; seq

A331662 Odd composite numbers k such that the divisors of the binary reversal of k (A030101) are the binary reversals of the divisors of k.

Original entry on oeis.org

9, 15, 21, 27, 45, 51, 63, 85, 93, 95, 111, 119, 123, 125, 153, 187, 189, 219, 221, 255, 335, 365, 381, 485, 511, 597, 629, 655, 681, 697, 765, 771, 831, 965, 1011, 1139, 1241, 1285, 1389, 1461, 1533, 1535, 1563, 1649, 1731, 1791, 1799, 1983, 2031, 2043, 2045
Offset: 1

Views

Author

Amiram Eldar, Jan 23 2020

Keywords

Examples

			9 is a term since the binary representations of its divisors, 1, 3 and 9, are palindromic: 1, 11 and 1001, i.e., the binary reversals of themselves.
95 is a term since the binary representations of its divisors, 1, 5, 19 and 95, are 1, 101, 10011 and 1011111, and their binary reversals, 1, 101, 11001, 1111101, or  1, 5, 25 and 125 in decimal representation, are the divisors of 125, which is the binary reversal of 95.
		

Crossrefs

Cf. A030101.
A329419, A331663 and A331664 are subsequences.

Programs

  • Mathematica
    Select[Range[1, 2000, 2], CompositeQ[#] && (Divisors @ IntegerReverse[#, 2]) == IntegerReverse[Divisors[#], 2] &]

A331663 Odd composite numbers k with at least one divisor that is not a binary palindrome (A006995) such that the divisors of the binary reversal of k (A030101) are the binary reversals of the divisors of k.

Original entry on oeis.org

95, 111, 123, 125, 187, 221, 335, 485, 597, 629, 655, 681, 697, 831, 965, 1011, 1139, 1389, 1461, 1535, 1563, 1649, 1731, 1791, 1983, 2031, 2043, 2045, 2227, 2493, 2605, 2733, 2827, 2885, 2901, 3033, 3099, 3279, 3281, 3327, 3341, 3459, 3647, 3891, 4039, 4083
Offset: 1

Views

Author

Amiram Eldar, Jan 23 2020

Keywords

Examples

			95 is a term since the binary representations of its divisors, 1, 5, 19, and 95, are 1, 101, 10011 and 1011111, and their binary reversals, 1, 101, 11001 and 1111101, or  1, 5, 25 and 125 in decimal representation, are the divisors of 125, which is the binary reversal of 95, and 19 and 95 are not binary palindromes.
		

Crossrefs

Complement of A329419 with respect to A331662.
A331664 is a subsequence.

Programs

  • Mathematica
    binPalQ[n_] := PalindromeQ @ IntegerDigits[n, 2]; Select[Range[1, 4000, 2], CompositeQ[#] && (Divisors @ IntegerReverse[#, 2]) == IntegerReverse[(d = Divisors[#]), 2] && !AllTrue[Rest[d], binPalQ] &]

A331664 Odd composite numbers k all of whose divisors larger than 1 are not binary palindromes (A006995) such that the divisors of the binary reversal of k (A030101) are the binary reversals of the divisors of k.

Original entry on oeis.org

4847, 5371, 7141, 7913, 22891, 23243, 27053, 27469, 47863, 48599, 60349, 61277, 69211, 73343, 77251, 80623, 81863, 89339, 100201, 111841, 114293, 116729, 126649, 130289, 138623, 180163, 200693, 260833, 286141, 319381, 348121, 371899, 383339, 388561, 439517, 453037
Offset: 1

Views

Author

Amiram Eldar, Jan 23 2020

Keywords

Examples

			4847 is a term since the binary representations of its divisors, 1, 37, 131 and 4847, are 1, 100101, 10000011 and 1001011101111, and their binary reversals, 1, 101001, 11000001 and 1111011101001, or 1, 41, 193 and 7913 in decimal representation, are the divisors of 7913, and none of the divisors of 4847 except 1 are binary palindromes.
		

Crossrefs

Subsequence of A331662 and A331663.

Programs

  • Mathematica
    binPalQ[n_] := PalindromeQ @ IntegerDigits[n, 2]; Select[Range[1, 5*10^5, 2], CompositeQ[#] && (Divisors@IntegerReverse[#, 2]) == IntegerReverse[(d = Divisors[#]), 2] && !AnyTrue[Rest[d], binPalQ] &]

A355596 Numbers all of whose divisors are alternating numbers (A030141).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18, 21, 23, 25, 27, 29, 32, 36, 41, 43, 47, 49, 50, 54, 58, 61, 63, 67, 69, 81, 83, 87, 89, 94, 98, 101, 103, 107, 109, 123, 125, 127, 129, 141, 145, 147, 149, 161, 163, 167, 181, 183, 189, 214, 218, 250, 254, 290, 298
Offset: 1

Views

Author

Bernard Schott, Jul 12 2022

Keywords

Comments

The smallest alternating number that is not a term is 30, because of 15.

Examples

			32 is a term since all the divisors of 32, i.e., 1, 2, 4, 8, 16 and 32, are alternating numbers
		

Crossrefs

Subsequence of A030141.
Similar sequences: A062687, A190217, A329419, A337941.

Programs

  • Mathematica
    q[n_] := AllTrue[Divisors[n], !MemberQ[Differences[Mod[IntegerDigits[#], 2]], 0] &]; Select[Range[300], q] (* Amiram Eldar, Jul 12 2022 *)
  • PARI
    isokd(n, d=digits(n))=for(i=2, #d, if((d[i]-d[i-1])%2==0, return(0))); 1; \\ A030141
    isok(m) = sumdiv(m, d, isokd(d)) == numdiv(m); \\ Michel Marcus, Jul 12 2022
  • Python
    from sympy import divisors
    def p(d): return 0 if d in "02468" else 1
    def c(n):
        if n < 10: return True
        s = str(n)
        return all(p(s[i]) != p(s[i+1]) for i in range(len(s)-1))
    def ok(n):
        return c(n) and all(c(d) for d in divisors(n, generator=True))
    print([k for k in range(1, 200) if ok(k)]) # Michael S. Branicky, Jul 12 2022
    

Extensions

a(51) and beyond from Michael S. Branicky, Jul 12 2022

A331896 Positive numbers all of whose divisors are negabinary palindromes (A331891).

Original entry on oeis.org

1, 3, 5, 7, 11, 17, 21, 23, 31, 43, 51, 77, 85, 103, 127, 155, 211, 217, 233, 257, 301, 341, 479, 635, 683, 739, 771, 857, 889, 937, 1117, 1229, 1285, 1333, 1367, 1799, 1951, 2111, 2159, 2383, 2395, 2459, 2731, 2827, 3187, 3251, 3347, 3937, 4001, 4273, 4369
Offset: 1

Views

Author

Amiram Eldar, Jan 30 2020

Keywords

Examples

			21 is a term since all the divisors of 21, {1, 3, 7, 21}, are palindromes in negabinary representation: {1, 111, 11011, 10101}.
		

Crossrefs

Programs

  • Mathematica
    negabin[n_] := negabin[n] = If[n==0, 0, negabin[Quotient[n-1, -2]]*10 + Mod[n, 2]]; nbPalinQ[n_] := PalindromeQ @ negabin[n]; negaBinAllDivPalQ[n_] := nbPalinQ[n] && AllTrue[Most @ Divisors[n], nbPalinQ]; Select[Range[5000], negaBinAllDivPalQ]
Showing 1-10 of 12 results. Next