A299690 Numbers without digit 1 whose multiplicative digital root is not 0.
2, 3, 4, 5, 6, 7, 8, 9, 22, 23, 24, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 47, 48, 49, 53, 57, 62, 63, 64, 66, 67, 68, 72, 73, 74, 75, 76, 77, 79, 82, 83, 84, 86, 88, 89, 92, 93, 94, 97, 98, 99, 222, 223, 224, 226, 227, 228, 229, 232
Offset: 1
Examples
5 times 4 = 20 and 2 times 0 = 0, so 54 is not in this sequence.
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
multDigRoot[n_] := NestWhile[Times @@ IntegerDigits@# &, n, UnsameQ, All]; Select[Range[500], DigitCount[#, 10, 1] == 0 && multDigRoot[#] != 0 &] (* Alonso del Arte, Feb 19 2018, based on Robert G. Wilson v's program for A031347 *)
-
PARI
mdr(n)=while(n>9,n=factorback(digits(n)));n do(n)=my(v=List());forvec(u=vector(n,i,[2,9]), if(mdr(factorback(u)), listput(v, fromdigits(u)))); Vec(v) \\ Gives n-digit elements \\ Charles R Greathouse IV, Feb 19 2018
Comments