OFFSET
1,1
REFERENCES
David Wells, The Penguin Dictionary of Curious and Interesting Numbers, p. 149 (Rev. ed. 1997).
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
6288 is included because it is divisible by 24 and its digits sum to 24.
MATHEMATICA
Select[24*Range[400], Total[IntegerDigits[#]]==24&] (* Harvey P. Dale, Nov 19 2014 *)
PROG
(PARI) SumD(x)= { local(s=0); while (x>9, s+=x%10; x\=10); return(s + x) }
{ n=0; forstep (m=24, 10^9, 24, if (SumD(m) == 24, write("b066270.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Feb 08 2010
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Harvey P. Dale, Jan 01 2002
EXTENSIONS
Offset changed from 0 to 1 by Harry J. Smith, Feb 08 2010
STATUS
approved