editing
approved
editing
approved
Select[Range[0, 1000], Total[IntegerDigits[#]] + Total[IntegerDigits[# + 1]] == Total[IntegerDigits[ 2*# + 1]] &] (* _G. C. Greubel_, Oct 01 2016 *)
Total[IntegerDigits[2*# + 1]] &] (* G. C. Greubel, Oct 01 2016 *)
approved
editing
editing
approved
(PARI) is(n)=my(s=sumdigits, t); t=s(2*n+1)-s(n); t>0 && t==s(n+1) \\ Charles R Greathouse IV, Oct 01 2016
proposed
editing
editing
proposed
Numbers n such that Sum_digits(n) + Sum_digits(n+1) = Sum_digits(n+2*n+1).
G. C. Greubel, <a href="/A135210/b135210.txt">Table of n, a(n) for n = 1..2000</a>
Select[Range[0, 1000], Total[IntegerDigits[#]] + Total[IntegerDigits[# + 1]] ==
Total[IntegerDigits[2*# + 1]] &] (* G. C. Greubel, Oct 01 2016 *)
approved
editing
editing
approved
0,1,3
approved
editing
_Paolo P. Lava & _ and _Giorgio Balzarotti (paoloplava(AT)gmail.com), _, Dec 18 2007
Paolo P. Lava & Giorgio Balzarotti (pplpaoloplava(AT)splgmail.atcom), Dec 18 2007