OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
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