HP Forums

Full Version: (95LX) Sequence of Integers without Squares, OEIS A000037 & Sum, A086849
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Reference URL's