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.

A226726 Numbers n such that the product of its decimal digits (A007954) is between n/2-1 and n/2+1.

Original entry on oeis.org

1, 19, 27, 36, 289, 379
Offset: 1

Views

Author

Keywords

Comments

There are no more terms in this sequence. - Charles R Greathouse IV, Jun 15 2013

Crossrefs

Programs

  • Mathematica
    j[lis_] := Product[lis[[i]], {i, 1, Length[lis]}];
    jj[n_] := j[RealDigits[n][[1]]]; Table[If[n/2 - 1 < j[RealDigits[n][[1]]] < n/2 + 1, n], {n, 1, 1000000}] // Union
    Select[Range[400],#/2-1Harvey P. Dale, Oct 22 2024 *)
  • PARI
    is(n)=my(d=digits(n));abs(prod(i=1,#d,d[i])-n/2)<=1
    select(is,vector(400,i,i))  \\ Charles R Greathouse IV, Jun 15 2013