OFFSET
1,1
COMMENTS
Even numbers with sum of digits equal to 6 are Harshad numbers (A005349). - Davide Rotondo, Sep 04 2020
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
60 is a member of the sequence since 60 / 6 = 10 and 6 + 0 = 6; 114 is also an element since 114 is divisible by 6 and 1 + 1+ 4 = 6.
MATHEMATICA
Select[ Range[ 6, 4200, 6 ], Plus @@ IntegerDigits[ # ] == 6 & ]
PROG
(ARIBAS): var stk: stack; end; minarg := 0; maxarg := 900; n := 6; for k := minarg to maxarg do m := k*n; s := itoa(m); for j := 0 to length(s) - 1 do stack_push(stk, atoi(s[j..j])); end; if sum(stack2array(stk)) = n then write(m, " "); end; end; .
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Lisa O Coulter (lisa_coulter(AT)my-deja.com), Jul 17 2001
EXTENSIONS
More terms from Klaus Brockhaus, Jul 20 2001
STATUS
approved