OFFSET
1,2
COMMENTS
Any term of the sequence is also a term of A008585. - Felix Fröhlich, Aug 18 2016
PROG
(C)
int i = 0;
while(1){
int sum = 0;
int powerof10 = 10;
int i2 = i;
while(i2 != 0){
sum += i2%powerof10;
i2 /= 10;
powerof10 *= 10;
}
if(sum%6 == 0) printf("%d\n", i);
i++;
}
(PARI) is(n)=my(d=digits(n)); sum(k=1, #d, d[n])%6==0; \\ Joerg Arndt, Aug 18 2016
(PARI) is(n)=sumdigits(n)%6==0 \\ Charles R Greathouse IV, Aug 18 2016
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Elana Lessing, Jun 17 2016
STATUS
approved