login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A061874 |First digit - second digit + third digit - fourth digit ...| = 5. 0
5, 16, 27, 38, 49, 50, 61, 72, 83, 94, 104, 115, 126, 137, 148, 159, 160, 171, 182, 193, 203, 214, 225, 236, 247, 258, 269, 270, 281, 292, 302, 313, 324, 335, 346, 357, 368, 379, 380, 391, 401, 412, 423, 434, 445, 456, 467, 478, 489, 490, 500, 511, 522, 533 (list; graph; refs; listen; history; text; internal format)
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 ] ] == 5, Print[ n ] ], {n, 1, 1000} ]
Select[Range[600], Abs[Total[Times@@@Partition[Riffle[IntegerDigits[#], {1, -1}, {2, -1, 2}], 2]]]==5&] (* Harvey P. Dale, Dec 15 2012 *)
CROSSREFS
Sequence in context: A227586 A335416 A018197 * A341006 A017449 A056736
KEYWORD
nonn,base,easy
AUTHOR
Robert G. Wilson v, May 10 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 05:18 EDT 2024. Contains 371964 sequences. (Running on oeis4.)