A232395
(ceiling(sqrt(n^3 + n^2 + n + 1)))^2 - (n^3 + n^2 + n + 1).
Original entry on oeis.org
0, 0, 1, 9, 15, 13, 30, 0, 40, 21, 45, 57, 51, 21, 70, 105, 120, 109, 66, 156, 43, 77, 81, 49, 216, 108, 217, 9, 36, 21, 293, 192, 31, 189, 309, 385, 411, 381, 289, 129, 408, 112, 281, 396, 451, 440, 357, 196, 624, 309, 613, 120, 276, 360, 366, 288, 120, 725
Offset: 0
A072689
Difference between (least square >= n) and (largest square <= n).
Original entry on oeis.org
0, 3, 3, 0, 5, 5, 5, 5, 0, 7, 7, 7, 7, 7, 7, 0, 9, 9, 9, 9, 9, 9, 9, 9, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 0, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17
Offset: 1
-
f:= proc(n) local t; t:= floor(sqrt(n));
if n = t^2 then 0 else 1 + 2*t fi
end proc:
map(f, [$1..100]); # Robert Israel, Sep 22 2020
-
ds[n_]:=Module[{s=Sqrt[n]},If[IntegerQ[s],0,1+2Floor[s]]]; Array[ds,80] (* Harvey P. Dale, Dec 05 2013 *)
A232501
Numbers k such that distances from k to three nearest squares are three triangular numbers.
Original entry on oeis.org
1, 10, 15, 19, 26, 197, 253, 325, 631, 1090, 1522, 2395, 3601, 4434, 4625, 6571, 9026, 11026, 11116, 14631, 15454, 19045, 22501, 35722, 38431, 41210, 53036, 61505, 65521, 66239, 69697, 69949, 70291, 85384, 99226, 110890, 152101, 152803, 160021, 168101, 181801, 189631
Offset: 1
Cf.
A232608 (terms that are triangular numbers).
A256097
Numerators of a rational guess r(n) for the input for Newton's algorithm to find sqrt(n).
Original entry on oeis.org
1, 3, 2, 2, 9, 5, 11, 3, 3, 19, 10, 7, 11, 23, 4, 4, 33, 17, 35, 9, 37, 19, 39, 5, 5, 51, 26, 53, 27, 11, 28, 57, 29, 59, 6, 6, 73, 37, 25, 19, 77, 13, 79, 20, 27, 41, 83, 7, 7, 99, 50, 101, 51, 103, 52, 15, 53, 107, 54, 109, 55, 111, 8, 8, 129, 65, 131, 33, 133, 67
Offset: 1
n = 2: s(n) = floor(sqrt(2)) = sqrt(A048760(2)) = 1, r(n) = 2 - 1^2 = 1. R(2) = s(2) + r(2)/(2*s(2)) = 1 + 1/(2*1) = 3/2. That is a(2) = 3 and A256098(2) = 2.
n = 17: s(n) = floor(sqrt(17)) = sqrt(A048760(17)) = 4 , r(n) = 17 - 4^2 = 1. R(17) = s(17) + r(17)/(2*s(17)) = 4 + 1/(2*4) = 33/8. That is, a(n) = 33 and A256098(17) = 8.
The rationals R(n) for n = 1..60 are: [1, 3/2, 2, 2, 9/4, 5/2, 11/4, 3, 3, 19/6, 10/3, 7/2, 11/3, 23/6, 4, 4, 33/8, 17/4, 35/8, 9/2, 37/8, 19/4, 39/8, 5, 5, 51/10, 26/5, 53/10, 27/5, 11/2, 28/5, 57/10, 29/5, 59/10, 6, 6, 73/12, 37/6, 25/4, 19/3, 77/12, 13/2, 79/12, 20/3, 27/4, 41/6, 83/12, 7, 7, 99/14, 50/7, 101/14, 51/7, 103/14, 52/7, 15/2, 53/7, 107/14, 54/7, 109/14,...]
For n=2 the Newton (Babylonian also called Heron) iteration produces. with x(2; k=0) = R(2) = 3/2: x(2; 1) = (3/2 + 4/3)/2 = 17/12 = 1 + 5/2 = 1 + 1/3 + 1/(3*4).
x(2; 2) = (17/12 + 24/17)/2 = 577/408 = 17/12 + (577/408 - 17*34/408) = 17/12 - 1/408 = 1 + 1/3 + 1/(3*4) - 1/(3*4*34) = 1.4142156... versus sqrt(2) = 1.4142135... (see A002193).
- H.-W. Alten et al., 4000 Jahre Algebra, 2. Auflage, Springer, 2014, p. 145-146.
A256098
Denominators for the numerators A256097.
Original entry on oeis.org
1, 2, 1, 1, 4, 2, 4, 1, 1, 6, 3, 2, 3, 6, 1, 1, 8, 4, 8, 2, 8, 4, 8, 1, 1, 10, 5, 10, 5, 2, 5, 10, 5, 10, 1, 1, 12, 6, 4, 3, 12, 2, 12, 3, 4, 6, 12, 1, 1, 14, 7, 14, 7, 14, 7, 2, 7, 14, 7, 14, 7, 14, 1, 1, 16, 8, 16, 4, 16, 8, 16, 2, 16, 8, 16, 4, 16, 8, 16, 1
Offset: 1
A077503
Smallest n-digit square beginning with n.
Original entry on oeis.org
1, 25, 324, 4096, 50176, 600625, 7001316, 80013025, 900000000, 1000014129, 11000024161, 120000580921, 1300001310976, 14000004588964, 150000007007601, 1600000000000000, 17000000233634401, 180000000244436761
Offset: 1
A099135
a(n) = smallest number m, not occurring earlier, such that a(k)+m is a square for some k
Original entry on oeis.org
1, 3, 6, 8, 10, 13, 12, 4, 5, 11, 14, 2, 7, 9, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72
Offset: 1
-
a(n)=if(n>14,n,[1, 3, 6, 8, 10, 13, 12, 4, 5, 11, 14, 2, 7, 9][n]) \\ Charles R Greathouse IV, Sep 02 2011
A140597
Squares nearest to and > terms in A098562.
Original entry on oeis.org
16, 20736, 76176, 239121, 2211169, 3583449, 29203216, 40005625, 45454564, 55606849, 77299264, 108097609, 115004176, 155650576, 226231681, 302934025, 324684361, 519703209, 551357361, 618367689, 797045824, 944025625, 1039740025
Offset: 1
The first term of A098562 is 13, the prime sum of 2^2 + 3^2, where 4+9=13. The square just exceeding 13 is 16, the first term of this sequence.
A166068
a(n) = a(n-1)+ [least square > a(n-1)].
Original entry on oeis.org
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
-
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
-
lista(n) = {na = 0; for (i=1, n, na += ceil(sqrt(na+1))^2; print1(na, ", "););} \\ Michel Marcus, Jun 02 2013
A259225
Smallest oblong number greater than or equal to n.
Original entry on oeis.org
0, 2, 2, 6, 6, 6, 6, 12, 12, 12, 12, 12, 12, 20, 20, 20, 20, 20, 20, 20, 20, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72
Offset: 0
-
f[n_] := n*(n + 1); g[n_] := (Sqrt[4*n + 1] - 1)/2; a[n_] := f[Ceiling[g[n]]]; Array[a, 100, 0] (* Amiram Eldar, Aug 16 2022 *)
-
a(n) = my(k = 0); while(k*(k+1)
Comments