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.

Previous Showing 11-12 of 12 results.

A354301 Numbers k such that k!, (k+1)! and (k+2)! have the same binary weight (A000120).

Original entry on oeis.org

0, 7, 12, 262, 12887667
Offset: 1

Views

Author

Amiram Eldar, May 23 2022

Keywords

Comments

Numbers k such that A079584(k) = A079584(k+1) = A079584(k+2).
The corresponding values of A079584(k) are 1, 6, 12, 747, 136453086, ...

Examples

			7 is a term since A079584(7) = A079584(8) = A079584(9) = 6.
12 is a term since A079584(12) = A079584(13) = A079584(14) = 12.
		

Crossrefs

Subsequence of A354300.

Programs

  • Mathematica
    s[n_] := s[n] = DigitCount[n!, 2, 1]; Select[Range[0, 300], s[#] == s[# + 1] == s[# + 2] &]
  • Python
    from itertools import count, islice
    def wt(n): return bin(n).count("1")
    def agen(): # generator of terms
        n, fn, fn1, fn2, wtn, wtn1, wtn2 = 0, 1, 1, 2, 1, 1, 1
        for n in count(0):
            if wtn == wtn1 == wtn2: yield n
            fn, fn1, fn2 = fn1, fn2, fn2*(n+3)
            wtn, wtn1, wtn2 = wtn1, wtn2, wt(fn2)
    print(list(islice(agen(), 4))) # Michael S. Branicky, May 23 2022

A381922 Numbers k>0 such that the Hamming weight of k! is a factorial.

Original entry on oeis.org

1, 2, 3, 4, 7, 8, 9, 63, 64
Offset: 1

Views

Author

Ctibor O. Zizka, Mar 10 2025

Keywords

Comments

Also numbers k such that A000120(A000142(k)) is in A000142.

Examples

			k = 7: A000120(A000142(7)) = 6, 6 is in A000142, thus 7 is a term.
		

Crossrefs

Programs

  • Mathematica
    factorialQ[n_] := factorialQ[n] = Module[{m = n, k = 2}, While[Divisible[m, k], m /= k; k++]; m == 1]; q[n_] := factorialQ[DigitCount[n!, 2, 1]]; Select[Range[100], q] (* Amiram Eldar, Mar 10 2025 *)
Previous Showing 11-12 of 12 results.