login
A061872
|First digit - second digit + third digit - fourth digit ...| = 3.
1
3, 14, 25, 30, 36, 41, 47, 52, 58, 63, 69, 74, 85, 96, 102, 113, 124, 135, 140, 146, 151, 157, 162, 168, 173, 179, 184, 195, 201, 212, 223, 234, 245, 250, 256, 261, 267, 272, 278, 283, 289, 294, 300, 311, 322, 333, 344, 355, 360, 366, 371, 377, 382, 388, 393
OFFSET
1,1
LINKS
MATHEMATICA
Do[ a = IntegerDigits[ n ]; l = Length[ a ]; e = o = {}; Do[ o = Append[ o, a[ [ 2k - 1 ] ] ], {k, 1, l/2 + .5} ]; Do[ e = Append[ e, a[ [ 2k ] ] ], {k, 1, l/2} ]; If[ Abs[ Apply[ Plus, o ] - Apply[ Plus, e ] ] == 3, Print[ n ] ], {n, 1, 1000} ]
fdsdQ[n_]:=Module[{idn=IntegerDigits[n], o, e}, o=Take[idn, {1, -1, 2}]; e= Take[ idn, {2, -1, 2}]; Abs[Total[o]-Total[e]]==3]; Select[Range[400], fdsdQ] (* Harvey P. Dale, Nov 01 2011 *)
KEYWORD
nonn,base,easy
AUTHOR
Robert G. Wilson v, May 10 2001
STATUS
approved