 (95LX) Sequence of Integers without Squares, OEIS A000037 & Sum, A086849 - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (95LX) Sequence of Integers without Squares, OEIS A000037 & Sum, A086849 (/thread-5680.html) (95LX) Sequence of Integers without Squares, OEIS A000037 & Sum, A086849 - Gerald H - 02-14-2016 03:32 PM Enter the formula below in the Solver Catalogue. Enter a value for N & actuate the Nth_Not_Square key, the calculation returns the Nth not square in the series & the sum of the first N terms as Sum_1_N OR Enter a value for Nth_Not_Square & actuate the N key, the calculation returns the index N in the series & the sum of the first N terms as Sum_1_N, but avoid entering a square number in this case. Do not actuate the Sum_1_N key. Nth_Not_Square=L(u,IF(N<3,N+1,N+RND(SQRT(N),0)))+ 0*L(Sum_1_N,IF( N< 3,SQ(N)+1,G(u)*((G(u)+1)/2)-L(v,IP(SQRT(G(u))) )* ( G(v)+1)*(G(v)+.5)/3))*Sum_1_N