Search: a195036 -id:a195036
|
|
A195020
|
|
Vertex number of a square spiral in which the length of the first two edges are the legs of the primitive Pythagorean triple [3, 4, 5]. The edges of the spiral have length A195019.
|
|
+10
28
|
|
|
0, 3, 7, 13, 21, 30, 42, 54, 70, 85, 105, 123, 147, 168, 196, 220, 252, 279, 315, 345, 385, 418, 462, 498, 546, 585, 637, 679, 735, 780, 840, 888, 952, 1003, 1071, 1125, 1197, 1254, 1330, 1390, 1470, 1533, 1617, 1683, 1771, 1840, 1932, 2004, 2100
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Zero together with the partial sums of A195019.
The spiral contains infinitely many Pythagorean triples in which the hypotenuses on the main diagonal are the positives A008587. The vertices on the main diagonal are the numbers A024966 = (3+4)*A000217 = 7*A000217, where both 3 and 4 are the first two edges in the spiral. The distance "a" between nearest edges that are perpendicular to the initial edge of the spiral is 3, while the distance "b" between nearest edges that are parallel to the initial edge is 4, so the distance "c" between nearest vertices on the same axis is 5 because from the Pythagorean theorem we can write c = (a^2+b^2)^(1/2) = sqrt(3^2+4^2) = sqrt(9+16) = sqrt(25) = 5.
Let an array have m(0,n)=m(n,0)=n*(n-1)/2 and m(n,n)=n*(n+1)/2. The first n+1 terms in row(n) are the numbers in the closed interval m(0,n) to m(n,n). The terms in column(n) are the same from m(n,0) to m(n,n). The first few antidiagonals are 0; 0,0; 1,1,1; 3,2,2,3; 6,4,3,4,6; 10,7,5,5,7,10. a(n) is the difference between the sum of the terms in the n+1 X n+1 matrices and those in the n X n matrices. - J. M. Bergot, Jul 05 2013 [The first five rows are: 0,0,1,3,6; 0,1,2,4,7; 1,2,3,5,8; 3,4,5,6,9; 6,7,8,9,10]
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(3+4*x)/((1+x)^2*(1-x)^3).
a(n) = (1/2)*A004526(n+2)*A047335(n+1) = (2*n*(7*n+13) + (2*n-5)*(-1)^n+5)/16.
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5).
a(n) - a(n-2) = A047355(n+1). (End)
|
|
MATHEMATICA
|
With[{r = Range[50]}, Join[{0}, Accumulate[Riffle[3*r, 4*r]]]] (* or *)
LinearRecurrence[{1, 2, -2, -1, 1}, {0, 3, 7, 13, 21}, 100] (* Paolo Xausa, Feb 09 2024 *)
|
|
PROG
|
(Magma) [(2*n*(7*n+13)+(2*n-5)*(-1)^n+5)/16: n in [0..50]]; // Vincenzo Librandi, Oct 14 2011
|
|
CROSSREFS
|
Cf. A024966, A008585, A008586, A001106, A022264, A024966, A033572, A144555, A158482, A158485, A195018, A195032, A195034, A195036.
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
A195034
|
|
Vertex number of a square spiral in which the length of the first two edges are the legs of the primitive Pythagorean triple [21, 20, 29]. The edges of the spiral have length A195033.
|
|
+10
8
|
|
|
0, 21, 41, 83, 123, 186, 246, 330, 410, 515, 615, 741, 861, 1008, 1148, 1316, 1476, 1665, 1845, 2055, 2255, 2486, 2706, 2958, 3198, 3471, 3731, 4025, 4305, 4620, 4920, 5256, 5576, 5933, 6273, 6651, 7011, 7410, 7790, 8210, 8610, 9051, 9471
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Zero together with partial sums of A195033.
The only primes in the sequence are 41 and 83 since a(n) = (1/2)*((2*n+(-1)^n+3)/4)*((82*n-43*(-1)^n+43)/4). - Bruno Berselli, Oct 12 2011
The spiral contains infinitely many Pythagorean triples in which the hypotenuses on the main diagonal are the positives multiples of 29 (Cf. A195819). The vertices on the main diagonal are the numbers A195038 = (21+20)*A000217 = 41*A000217, where both 21 and 20 are the first two edges in the spiral. The distance "a" between nearest edges that are perpendicular to the initial edge of the spiral is 21, while the distance "b" between nearest edges that are parallel to the initial edge is 20, so the distance "c" between nearest vertices on the same axis is 29 because from the Pythagorean theorem we can write c = (a^2+b^2)^(1/2) = sqrt(21^2+20^2) = sqrt(441+400) = sqrt(841) = 29. - Omar E. Pol, Oct 12 2011
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(21+20*x)/((1+x)^2*(1-x)^3).
a(n) = (2*n*(41*n+83)-(2*n+43)*(-1)^n+43)/16.
a(n) = a(n-1)+2*a(n-2)-2*a(n-3)-a(n-4)+a(n-5).
|
|
MATHEMATICA
|
LinearRecurrence[{1, 2, -2, -1, 1}, {0, 21, 41, 83, 123}, 50] (* Harvey P. Dale, May 02 2012 *)
|
|
PROG
|
(Magma) [(2*n*(41*n+83)-(2*n+43)*(-1)^n+43)/16: n in [0..50]]; // Vincenzo Librandi, Oct 14 2011
(PARI) concat(0, Vec(x*(21+20*x)/((1+x)^2*(1-x)^3) + O(x^60))) \\ Michel Marcus, Mar 08 2016
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
A195032
|
|
Vertex number of a square spiral in which the length of the first two edges are the legs of the primitive Pythagorean triple [5, 12, 13]. The edges of the spiral have length A195031.
|
|
+10
6
|
|
|
0, 5, 17, 27, 51, 66, 102, 122, 170, 195, 255, 285, 357, 392, 476, 516, 612, 657, 765, 815, 935, 990, 1122, 1182, 1326, 1391, 1547, 1617, 1785, 1860, 2040, 2120, 2312, 2397, 2601, 2691, 2907, 3002, 3230, 3330, 3570, 3675, 3927, 4037, 4301, 4416, 4692
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Zero together with partial sums of A195031.
The spiral contains infinitely many Pythagorean triples in which the hypotenuses on the main diagonal are the positives multiples of 13 (cf. A008595). The vertices on the main diagonal are the numbers A195037 = (5+12)*A000217 = 17*A000217, where both 5 and 12 are the first two edges in the spiral. The distance "a" between nearest edges that are perpendicular to the initial edge of the spiral is 5, while the distance "b" between nearest edges that are parallel to the initial edge is 12, so the distance "c" between nearest vertices on the same axis is 13 because from the Pythagorean theorem we can write c = (a^2 + b^2)^(1/2) = sqrt(5^2 + 12^2) = sqrt(25 + 144) = sqrt(169) = 13. - Omar E. Pol, Oct 12 2011
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(5 + 12*x)/((1 + x)^2*(1 - x)^3).
a(n) = (1/2)*((2*n + (-1)^n + 3)/4)*((34*n - 3*(-1)^n+3)/4) = (2*n*(17*n + 27) + (14*n - 3)*(-1)^n + 3)/16.
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5). (End)
|
|
MATHEMATICA
|
a[n_] := (2 n (17 n + 27) + (14 n - 3)*(-1)^n + 3)/16; Array[a, 50, 0] (* Amiram Eldar, Nov 23 2018 *)
|
|
PROG
|
(Magma) [(2*n*(17*n+27)+(14*n-3)*(-1)^n+3)/16: n in [0..50]]; // Vincenzo Librandi, Oct 14 2011
(PARI) vector(50, n, n--; (2*n*(17*n+27)+(14*n-3)*(-1)^n+3)/16) \\ G. C. Greubel, Nov 23 2018
(Sage) [(2*n*(17*n+27)+(14*n-3)*(-1)^n+3)/16 for n in range(50)] # G. C. Greubel, Nov 23 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
A195035
|
|
Multiples of 15 and of 8 interleaved: a(2n-1) = 15n, a(2n) = 8n.
|
|
+10
6
|
|
|
15, 8, 30, 16, 45, 24, 60, 32, 75, 40, 90, 48, 105, 56, 120, 64, 135, 72, 150, 80, 165, 88, 180, 96, 195, 104, 210, 112, 225, 120, 240, 128, 255, 136, 270, 144, 285, 152, 300, 160, 315, 168, 330, 176, 345, 184, 360, 192, 375, 200, 390, 208, 405, 216
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
a(n) is also the length of the n-th edge of a square spiral in which the first two edges are the legs of the primitive Pythagorean triple [15, 8, 17]. Zero together with partial sums give A195036; the vertices of the spiral.
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(15+8*x)/((1-x)^2*(1+x)^2).
a(n) = 2*a(n-2) - a(n-4).
|
|
MATHEMATICA
|
Riffle[15*#, 8*#] & [Range[50]] (* Paolo Xausa, Mar 21 2024 *)
|
|
PROG
|
(Magma) &cat[[15*n, 8*n]: n in [1..27]]; // Bruno Berselli, Sep 30 2011
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
A195039
|
|
23 times triangular numbers.
|
|
+10
1
|
|
|
0, 23, 69, 138, 230, 345, 483, 644, 828, 1035, 1265, 1518, 1794, 2093, 2415, 2760, 3128, 3519, 3933, 4370, 4830, 5313, 5819, 6348, 6900, 7475, 8073, 8694, 9338, 10005, 10695, 11408, 12144, 12903, 13685, 14490, 15318, 16169, 17043, 17940, 18860
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Related to the primitive Pythagorean triple [15, 8, 17].
Sequence found by reading the line from 0, in the direction 0, 23,..., and the same line from 0, in the direction 0, 69,..., in the Pythagorean spiral whose edges have length A195035 and whose vertices are the numbers A195036. This is the main diagonal of the square spiral.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (23*n^2 + 23*n)/2 = 23*n*(n+1)/2 = 23*A000217(n).
a(0)=0, a(1)=23, a(2)=69, a(n)=3*a(n-1)-3*a(n-2)+a(n-3). - Harvey P. Dale, Aug 28 2012
|
|
MATHEMATICA
|
23*Accumulate[Range[0, 40]] (* or *) LinearRecurrence[{3, -3, 1}, {0, 23, 69}, 50] (* Harvey P. Dale, Aug 28 2012 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
Search completed in 0.006 seconds
|