login
First (leftmost) digit - second digit + third digit - fourth digit .... = 10.
1

%I #6 Apr 30 2016 13:12:07

%S 109,208,219,307,318,329,406,417,428,439,505,516,527,538,549,604,615,

%T 626,637,648,659,703,714,725,736,747,758,769,802,813,824,835,846,857,

%U 868,879,901,912,923,934,945,956,967,978,989,1090,2080,2091,2190,3070

%N First (leftmost) digit - second digit + third digit - fourth digit .... = 10.

%C Differs from A060978 at the 47th term.

%H Harvey P. Dale, <a href="/A061879/b061879.txt">Table of n, a(n) for n = 1..10000</a>

%t Select[Range[3500],Total[Times@@@Partition[Riffle[IntegerDigits[#],{1,-1},{2,-1,2}],2]]==10&] (* _Harvey P. Dale_, Apr 30 2016 *)

%o (PARI) isok(n) = {digs = digits(n); return (sum(i=1, #digs, (-1)^(i+1)*digs[i]) == 10);} \\ _Michel Marcus_, Jul 17 2013

%Y Cf. A008593, A060978-A060980, A060982, A061470-A061479, A061870-A061882.

%K nonn,base,easy

%O 1,1

%A Larry Reeves (larryr(AT)acm.org), May 15 2001