HP Forums
(35S) OEIS A157502, Evens Without Squares Formula - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (35S) OEIS A157502, Evens Without Squares Formula (/thread-2579.html)



(35S) OEIS A157502, Evens Without Squares Formula - Gerald H - 12-07-2014 07:54 AM

Sequence of even numbers without the squares, OEIS A157502

2, 6, 8, 10, 12, 14, 18, 20, 22, 24, 26, 28, 30, 32, 34, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 66, 68…..

For index N solve the equation

G = IP( SQRT( 2 * N ) + 0.5 ) ► R + 2 * N – RMDR( R , 2 )

for G.

For input

N = 1E10

The calculator returns

G = 20,000,141,420

Anyone recognize 141,42……?


RE: HP 35S: OEIS A157502, Evens Without Squares Formula - Joe Horn - 12-08-2014 12:23 AM

(12-07-2014 07:54 AM)Gerald H Wrote:  Anyone recognize 141,42……?

Reminiscent of \(\sqrt{2}\)