# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a006010
Showing 1-1 of 1
%I A006010 M3897 #78 Oct 05 2022 05:02:10
%S A006010 1,5,20,52,117,225,400,656,1025,1525,2196,3060,4165,5537,7232,9280,
%T A006010 11745,14661,18100,22100,26741,32065,38160,45072,52897,61685,71540,
%U A006010 82516,94725,108225,123136,139520,157505,177157,198612,221940,247285,274721,304400
%N A006010 Number of paraffins (see Losanitsch reference for precise definition).
%C A006010 This is also the square of the sum of the odd numbers plus the square of the sum of the even numbers, up to n. E.g., a(4) = (1+3)^2 + (2+4)^2 = 52. - _Scott R. Shannon_, Feb 20 2019
%C A006010 The area of a square whose side is a segment connecting the ends of a broken line (snake), the adjacent links of which are perpendicular and equal to the numbers 1, 2, 3, 4, ..., n. For example, a(5) = 9^2 + 6^2 = 117. - _Nicolay Avilov_, Aug 02 2022
%D A006010 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%H A006010 Vincenzo Librandi, Table of n, a(n) for n = 1..1000
%H A006010 Nicolay Avilov, Illustration of a(1)-a(6)
%H A006010 Nicolay Avilov, The problem of a broken line in a square (in Russian).
%H A006010 S. M. Losanitsch, Die Isomerie-Arten bei den Homologen der Paraffin-Reihe, Chem. Ber. 30 (1897), 1917-1926.
%H A006010 S. M. Losanitsch, Die Isomerie-Arten bei den Homologen der Paraffin-Reihe, Chem. Ber. 30 (1897), 1917-1926. (Annotated scanned copy)
%H A006010 Index entries for linear recurrences with constant coefficients, signature (3,-1,-5,5,1,-3,1).
%F A006010 Sum of [ 1, 3, 9, ... ](A005994) + [ 0, 0, 1, 3, 9, ... ] + 2*[ 0, 1, 5, 15, 35, ... ](binomial(n, 4)).
%F A006010 If n is odd then a(n) = (1/8) * (n^4 + 2*n^3 + 2*n^2 + 2*n + 1) = Det(Transpose[M]*M) where M is the 2 X 3 matrix whose rows are [(n-1)/2, (n-1)/2], [(n-1)/2 + 1, 0] and [(n-1)/2 + 1, (n-1)/2 + 1]. If n is even then a(n) = (1/8) * (n^4 + 2*n^3 + 2*n^2) = Det(Transpose[M]*M) where M is the 2 X 3 matrix whose rows are [n/2, 0], [n/2, n/2] and [n/2 + 1, 0]. - _Gerald McGarvey_, Oct 30 2007
%F A006010 G.f.: -x*(x^4+2*x^3+6*x^2+2*x+1) / ((x-1)^5*(x+1)^2). - _Colin Barker_, Mar 20 2013
%F A006010 E.g.f.: (x*(7 + 15*x + 8*x^2 + x^3)*cosh(x) + (1 + 5*x + 15*x^2 + 8*x^3 + x^4)*sinh(x))/8. - _Stefano Spezia_, Jul 08 2020
%t A006010 CoefficientList[Series[-(x^4 + 2 x^3 + 6 x^2 + 2 x + 1)/((x - 1)^5 (x + 1)^2), {x, 0, 40}], x] (* _Vincenzo Librandi_, Oct 14 2013 *)
%t A006010 LinearRecurrence[{3,-1,-5,5,1,-3,1},{1,5,20,52,117,225,400},40] (* _Harvey P. Dale_, Dec 13 2018 *)
%o A006010 (PARI) Vec(-x*(x^4+2*x^3+6*x^2+2*x+1)/((x-1)^5*(x+1)^2) + O(x^100)) \\ _Colin Barker_, Oct 05 2015
%Y A006010 Cf. A005994, A186424 (2nd differences), A317614 (1st differences), A335648 (partial sums).
%K A006010 nonn,easy
%O A006010 1,2
%A A006010 _N. J. A. Sloane_
%E A006010 More terms from _David W. Wilson_
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE