A166068 a(n) = a(n-1)+ [least square > a(n-1)].
1, 5, 14, 30, 66, 147, 316, 640, 1316, 2685, 5389, 10865, 21890, 43794, 87894, 176103, 352503, 705339, 1410939, 2822283, 5644683, 11290059, 22586380, 45177389, 90362673, 180726709, 361467845, 722962014, 1445926558, 2891903234
Offset: 1
Keywords
Links
- Robert Israel, Table of n, a(n) for n = 1..2656
- J. C. Lagarias, The 3x+1 problem and its generalizations, Amer. Math. Monthly, 92 (1985), 3-23.
Programs
-
Maple
A[1]:= 1: for n from 1 to 100 do A[n+1]:= A[n] + (floor(sqrt(A[n]))+1)^2 od: seq(A[n],n=1..100); # Robert Israel, Oct 06 2014
-
PARI
lista(n) = {na = 0; for (i=1, n, na += ceil(sqrt(na+1))^2; print1(na, ", "););} \\ Michel Marcus, Jun 02 2013
Extensions
Typo in data corrected by D. S. McNeil, Aug 17 2010
Comments