login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A346383
Numbers that leave their digital root as the remainder when the product of their digits is divided by the sum of their digits.
1
37, 38, 39, 73, 83, 93, 99, 146, 164, 247, 274, 299, 339, 348, 368, 384, 386, 393, 416, 427, 438, 449, 461, 472, 483, 494, 614, 638, 641, 679, 683, 697, 699, 724, 742, 769, 796, 834, 836, 843, 863, 929, 933, 944, 967, 969, 976, 992, 996, 1149, 1156, 1165, 1179
OFFSET
1,1
LINKS
EXAMPLE
3*7 == 1 (mod 3+7), digital root of 37 is 1, so 37 is a term.
MAPLE
filter:= proc(n) local L; L:= convert(n, base, 10); convert(L, `*`) mod convert(L, `+`) = [9, $1..8][(n mod 9)+1] end proc;
MATHEMATICA
l={}; Do[If[Mod[Times@@IntegerDigits@n, Total[IntegerDigits[n]]]==FixedPoint[Total[IntegerDigits[#, 10]] &, n], AppendTo[l, n]], {n, 0, 1000}]; l
PROG
(PARI) isok(m) = my(d=digits(m)); (vecprod(d) % vecsum(d)) == ((m-1)%9 + 1); \\ Michel Marcus, Jul 15 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Metin Sariyar, Jul 14 2021
STATUS
approved