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!)
A060980 |First digit - second digit + third digit - fourth digit ...| = 12. 27

%I #4 Sep 12 2017 12:08:43

%S 309,408,419,507,518,529,606,617,628,639,705,716,727,738,749,804,815,

%T 826,837,848,859,903,914,925,936,947,958,969,1409,1508,1519,1607,1618,

%U 1629,1706,1717,1728,1739,1805,1816,1827,1838,1849,1904,1915,1926,1937

%N |First digit - second digit + third digit - fourth digit ...| = 12.

%H Harvey P. Dale, <a href="/A060980/b060980.txt">Table of n, a(n) for n = 1..1000</a>

%t 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 ] ] == 12, Print[ n ] ], {n, 1, 2000} ]

%t Select[Range[2000],Abs[Total[Times@@@Partition[Riffle[IntegerDigits[#],{1,-1},{2,-1,2}],2]]]==12&] (* _Harvey P. Dale_, Sep 12 2017 *)

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

%K base,nonn,easy

%O 1,1

%A _Robert G. Wilson v_, May 10 2001

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.)