OFFSET
1,1
COMMENTS
Conjecture: Every century has a representation in the sequence.
EXAMPLE
1085 = 7*155 and 1 + 0 + 8 + 5 = 14 = 7*2.
MATHEMATICA
Select[7*Range[400], Mod[Total[IntegerDigits[#]], 7] == 0 &] (* T. D. Noe, Sep 24 2012 *)
PROG
(JavaScript)
function sumarray(arr) {
t = 0;
for (i = 0; i < arr.length; i++) t += arr[i];
return t;
}
for(s = 7; s < 3000; s += 7) {
a = new Array();
x = s.toString();
for (j = 0; j < x.length; j++) a[j] = Number(x.charAt(j));
if (sumarray(a) % 7 == 0) document.write(s + ", ");
}
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jon Perry, Sep 22 2012
STATUS
approved