A062768 Multiples of 6 such that the sum of the digits is equal to 6.
6, 24, 42, 60, 114, 132, 150, 204, 222, 240, 312, 330, 402, 420, 510, 600, 1014, 1032, 1050, 1104, 1122, 1140, 1212, 1230, 1302, 1320, 1410, 1500, 2004, 2022, 2040, 2112, 2130, 2202, 2220, 2310, 2400, 3012, 3030, 3102, 3120, 3210, 3300, 4002, 4020, 4110
Offset: 1
Examples
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.
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
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;.
-
Mathematica
Select[ Range[ 6, 4200, 6 ], Plus @@ IntegerDigits[ # ] == 6 & ]
Extensions
More terms from Klaus Brockhaus, Jul 20 2001
Comments