OFFSET
1,1
COMMENTS
The graph is fairly interesting, as the terms are clustered together linearly in different sections.
The sequence is infinite since it contains all the terms 2*10^k, for k >= 0. - Metin Sariyar, Sep 16 2019
LINKS
Max Lacoma, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Range@700, Equal @@ Plus @@@ IntegerDigits[{2 #, 2 + #}] &] (* Giovanni Resta, Sep 16 2019 *)
PROG
(MATLAB - Checks up to n=10000)
n = 0;
x = [];
while n < 10000
two_n = sum(str2num(num2str(2*n)'));
two_plus_n = sum(str2num(num2str(2+n)'));
if two_n == two_plus_n
x(numel(x)+1) = n;
end
n = n+1;
end
x
(PARI) isok(k) = sumdigits(2*k) == sumdigits(k+2); \\ Michel Marcus, Sep 16 2019
CROSSREFS
KEYWORD
AUTHOR
Max Lacoma, Sep 14 2019
STATUS
approved