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.

A370251 Base-12 numbers k such that k = (product of nonzero digits of k) * (sum of digits of k) (written in base 10).

Original entry on oeis.org

1, 176, 231, 495, 7040
Offset: 1

Views

Author

René-Louis Clerc, Feb 13 2024

Keywords

Comments

There are only finitely many such numbers (Property 1' of Clerc).

Examples

			231 = 173_12, (1*7*3)*(1+7+3) = 21*11 = 231.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[5*10^4], Total[IntegerDigits[#, 12]]*Fold[Times, 1, Select[IntegerDigits[#, 12],#>0&]]==#&] (* James C. McMahon, Feb 14 2024 *)
  • PARI
    isok(k, b) = my(d=select(x->(x>0), digits(k, b))); vecprod(d)*vecsum(d) == k;
    for (k=0, 10^10, if (isok(k, 12), print1(k, ", ")))