A374439
Triangle read by rows: the coefficients of the Lucas-Fibonacci polynomials. T(n, k) = T(n - 1, k) + T(n - 2, k - 2) with initial values T(n, k) = k + 1 for k < 2.
Original entry on oeis.org
1, 1, 2, 1, 2, 1, 1, 2, 2, 2, 1, 2, 3, 4, 1, 1, 2, 4, 6, 3, 2, 1, 2, 5, 8, 6, 6, 1, 1, 2, 6, 10, 10, 12, 4, 2, 1, 2, 7, 12, 15, 20, 10, 8, 1, 1, 2, 8, 14, 21, 30, 20, 20, 5, 2, 1, 2, 9, 16, 28, 42, 35, 40, 15, 10, 1, 1, 2, 10, 18, 36, 56, 56, 70, 35, 30, 6, 2
Offset: 0
Triangle starts:
[ 0] [1]
[ 1] [1, 2]
[ 2] [1, 2, 1]
[ 3] [1, 2, 2, 2]
[ 4] [1, 2, 3, 4, 1]
[ 5] [1, 2, 4, 6, 3, 2]
[ 6] [1, 2, 5, 8, 6, 6, 1]
[ 7] [1, 2, 6, 10, 10, 12, 4, 2]
[ 8] [1, 2, 7, 12, 15, 20, 10, 8, 1]
[ 9] [1, 2, 8, 14, 21, 30, 20, 20, 5, 2]
[10] [1, 2, 9, 16, 28, 42, 35, 40, 15, 10, 1]
.
Table of interpolated sequences:
| n | A039834 & A000045 | A000032 | A000129 | A048654 |
| n | -P(n,-1) | P(n,1) |2^n*P(n,-1/2)|2^n*P(n,1/2)|
| | Fibonacci | Lucas | Pell | Pell* |
| 0 | -1 | 1 | 1 | 1 |
| 1 | 1 | 3 | 0 | 4 |
| 2 | 0 | 4 | 1 | 9 |
| 3 | 1 | 7 | 2 | 22 |
| 4 | 1 | 11 | 5 | 53 |
| 5 | 2 | 18 | 12 | 128 |
| 6 | 3 | 29 | 29 | 309 |
| 7 | 5 | 47 | 70 | 746 |
| 8 | 8 | 76 | 169 | 1801 |
| 9 | 13 | 123 | 408 | 4348 |
Adding and subtracting the values in a row of the table (plus halving the values obtained in this way):
A022087,
A055389,
A118658,
A052542,
A163271,
A371596,
A324969,
A212804,
A077985,
A069306,
A215928.
-
function T(n,k) // T = A374439
if k lt 0 or k gt n then return 0;
elif k le 1 then return k+1;
else return T(n-1,k) + T(n-2,k-2);
end if;
end function;
[T(n,k): k in [0..n], n in [0..12]]; // G. C. Greubel, Jan 23 2025
-
A374439 := (n, k) -> ifelse(k::odd, 2, 1)*binomial(n - irem(k, 2) - iquo(k, 2), iquo(k, 2)):
# Alternative, using the function qStirling2 from A333143:
T := (n, k) -> 2^irem(k, 2)*qStirling2(n, k, -1):
seq(seq(T(n, k), k = 0..n), n = 0..10);
-
A374439[n_, k_] := (# + 1)*Binomial[n - (k + #)/2, (k - #)/2] & [Mod[k, 2]];
Table[A374439[n, k], {n, 0, 10}, {k, 0, n}]//Flatten (* Paolo Xausa, Jul 24 2024 *)
-
from functools import cache
@cache
def T(n: int, k: int) -> int:
if k > n: return 0
if k < 2: return k + 1
return T(n - 1, k) + T(n - 2, k - 2)
-
from math import comb as binomial
def T(n: int, k: int) -> int:
o = k & 1
return binomial(n - o - (k - o) // 2, (k - o) // 2) << o
-
def P(n, x):
if n < 0: return P(n, x)
return sum(T(n, k)*x**k for k in range(n + 1))
def sgn(x: int) -> int: return (x > 0) - (x < 0)
# Table of interpolated sequences
print("| n | A039834 & A000045 | A000032 | A000129 | A048654 |")
print("| n | -P(n,-1) | P(n,1) |2^n*P(n,-1/2)|2^n*P(n,1/2)|")
print("| | Fibonacci | Lucas | Pell | Pell* |")
f = "| {0:2d} | {1:9d} | {2:4d} | {3:5d} | {4:4d} |"
for n in range(10): print(f.format(n, -P(n, -1), P(n, 1), int(2**n*P(n, -1/2)), int(2**n*P(n, 1/2))))
-
from sage.combinat.q_analogues import q_stirling_number2
def A374439(n,k): return (-1)^((k+1)//2)*2^(k%2)*q_stirling_number2(n+1, k+1, -1)
print(flatten([[A374439(n, k) for k in range(n+1)] for n in range(13)])) # G. C. Greubel, Jan 23 2025
A042936
Numerators of continued fraction convergents to sqrt(1000).
Original entry on oeis.org
31, 32, 63, 95, 158, 253, 1676, 3605, 8886, 136895, 282676, 702247, 4496158, 5198405, 9694563, 14892968, 24587531, 39480499, 2472378469, 2511858968, 4984237437, 7496096405, 12480333842, 19976430247, 132338915324, 284654260895, 701647437114, 10809365817605, 22320379072324
Offset: 0
- Vincenzo Librandi, Table of n, a(n) for n = 0..200
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 78960998, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1).
-
Numerator[Convergents[Sqrt[1000], 30]] (* Harvey P. Dale, Oct 29 2013 *)
-
A42936=contfracpnqn(c=contfrac(sqrt(1000)), #c)[1,][^-1] \\ Discards possibly incorrect last term. NB: a(n)=A42936[n+1]. Could be extended using: {A42936=concat(A42936, 78960998*A42936[-18..-1]-A42936[-36..-19])}
\\ But terms with arbitrarily large indices can be computed using:
A042936(n)={[A42936[n%18+i]|i<-[1, 19]]*([0, -1; 1, 78960998]^(n\18))[,1]} \\ Faster but longer with n=divrem(n,18). (End)
A115032
Expansion of (5-14*x+x^2)/((1-x)*(x^2-18*x+1)).
Original entry on oeis.org
5, 81, 1445, 25921, 465125, 8346321, 149768645, 2687489281, 48225038405, 865363202001, 15528312597605, 278644263554881, 5000068431390245, 89722587501469521, 1610006506595061125, 28890394531209630721, 518417095055178291845, 9302617316461999622481
Offset: 0
G.f. = 5 + 81*x + 1445*x^2 + 25921*x^3 + 465125*x^4 + 8346321*x^5 + ...
- G. C. Greubel, Table of n, a(n) for n = 0..795
- Creighton Dement, Floretions associated with A115032.
- Wolfdieter Lang, A proof for the touching circle problem (part I).
- Giovanni Lucca, Circle chains inside the arbelos and integer sequences, Int'l J. Geom. (2023) Vol. 12, No. 1, 71-82.
- Kival Ngaokrajang, Illustration of initial terms.
- Index entries for linear recurrences with constant coefficients, signature (19,-19,1).
- Index entries for sequences related to Chebyshev polynomials.
-
seq((9*combinat:-fibonacci(6*(n+1)) - combinat:-fibonacci(6*n) + 8)/16, n = 0 .. 20); # Robert Israel, Aug 25 2014
-
LinearRecurrence[{19,-19,1},{5,81,1445},30] (* Harvey P. Dale, Nov 14 2014 *)
CoefficientList[Series[(5 - 14*x + x^2)/((1 - x)*(x^2 - 18*x + 1)), {x, 0, 50}], x] (* G. C. Greubel, Dec 19 2017 *)
-
Vec((5-14*x+x^2)/((1-x)*(x^2-18*x+1)) + O(x^20)) \\ Michel Marcus, Aug 23 2014
A041010
Numerators of continued fraction convergents to sqrt(8).
Original entry on oeis.org
2, 3, 14, 17, 82, 99, 478, 577, 2786, 3363, 16238, 19601, 94642, 114243, 551614, 665857, 3215042, 3880899, 18738638, 22619537, 109216786, 131836323, 636562078, 768398401, 3710155682, 4478554083, 21624372014, 26102926097, 126036076402, 152139002499
Offset: 0
Analog for other sqrt(m):
A001333 (m=2),
A002531 (m=3),
A001077 (m=5),
A041006 (m=6),
A041008 (m=7),
A005667 (m=10),
A041014 (m=11),
A041016 (m=12), ...,
A042934 (m=999),
A042936 (m=1000).
-
Table[Numerator[FromContinuedFraction[ContinuedFraction[Sqrt[8],n]]],{n,1,50}] (* Vladimir Joseph Stephan Orlovsky, Mar 16 2011*)
CoefficientList[Series[(2 + 3*x + 2*x^2 - x^3)/(1 - 6*x^2 + x^4), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 28 2013 *)
a0[n_] := -((3-2*Sqrt[2])^n*(1+Sqrt[2]))+(-1+Sqrt[2])*(3+2*Sqrt[2])^n // Simplify
a1[n_] := ((3-2*Sqrt[2])^n+(3+2*Sqrt[2])^n)/2 // Simplify
Flatten[MapIndexed[{a0[#], a1[#]} &,Range[20]]] (* Gerry Martens, Jul 11 2015 *)
-
A041010=contfracpnqn(c=contfrac(sqrt(8)),#c)[1,][^-1] \\ Discard possibly incorrect last element. NB: a(n)=A041010[n+1]! For more terms use:
A041010(n)={n<#A041010|| A041010=extend(A041010, [-1,0,6,0]~, n\.8); A041010[n+1]}
extend(A,c,N)={for(n=#A+1,#A=Vec(A,N), A[n]=A[n-#c..n-1]*c);A} \\ (End)
Initial term 1 removed and b-file, program and formulas adapted by
Georg Fischer, Jul 01 2019
A059973
Expansion of x*(1 + x - 2*x^2) / ( 1 - 4*x^2 - x^4).
Original entry on oeis.org
0, 1, 1, 2, 4, 9, 17, 38, 72, 161, 305, 682, 1292, 2889, 5473, 12238, 23184, 51841, 98209, 219602, 416020, 930249, 1762289, 3940598, 7465176, 16692641, 31622993, 70711162, 133957148, 299537289, 567451585, 1268860318, 2403763488, 5374978561
Offset: 0
H. Peter Aleff (hpaleff(AT)earthlink.net), Mar 05 2001
G.f. = x + x^2 + 2*x^3 + 4*x^4 + 9*x^5 + 17*x^6 + 38*x^7 + 72*x^8 + 161*x^9 + ... - _Michael Somos_, Aug 11 2009
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- T. J. Osler, Cardan polynomials and the reduction of radicals, Math. Mag., 74 (No. 1, 2001), 26-32.
- Index entries for linear recurrences with constant coefficients, signature (0,4,0,1).
-
I:=[0,1,1,2]; [n le 4 select I[n] else 4*Self(n-2)+Self(n-4): n in [1..40]]; // Vincenzo Librandi, Oct 10 2015
-
CoefficientList[ Series[(x +x^2 -2x^3)/(1 -4x^2 -x^4), {x, 0, 33}], x]
LinearRecurrence[{0,4,0,1}, {0,1,1,2}, 50] (* Vincenzo Librandi, Oct 10 2015 *)
-
{a(n) = if( n<0, n = -n; polcoeff( (-2*x + x^2 + x^3) / (1 + 4*x^2 - x^4) + x*O(x^n), n), polcoeff( (x + x^2 - 2*x^3) / ( 1 - 4*x^2 - x^4) + x*O(x^n), n))} /* Michael Somos, Aug 11 2009 */
-
a(n) = if (n < 4, fibonacci(n), 4*a(n-2) + a(n-4));
vector(50, n, a(n-1)) \\ Altug Alkan, Oct 04 2015
-
def a(n): return fibonacci(n) if (n<4) else 4*a(n-2) + a(n-4)
[a(n) for n in [0..40]] # G. C. Greubel, Jul 12 2021
I made the old definition into a comment and gave the g.f. as an explicit definition. -
N. J. A. Sloane, Jan 05 2011
A097924
a(n) = 4*a(n-1) + a(n-2), n>=2, a(0) = 2, a(1) = 7.
Original entry on oeis.org
2, 7, 30, 127, 538, 2279, 9654, 40895, 173234, 733831, 3108558, 13168063, 55780810, 236291303, 1000946022, 4240075391, 17961247586, 76085065735, 322301510526, 1365291107839, 5783465941882, 24499154875367, 103780085443350, 439619496648767, 1862258072038418
Offset: 0
G.f. = 2 + 7*x + 30*x^2 + 127*x^3 + 538*x^4 + 2279*x^5 + 9654*x^6 + 40895*x^7 + ...
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Mark W. Coffey, James L. Hindmarsh, Matthew C. Lettington, and John Pryce, On Higher Dimensional Interlacing Fibonacci Sequences, Continued Fractions and Chebyshev Polynomials, arXiv:1502.03085 [math.NT], 2015 (see p. 31).
- Tanya Khovanova, Recursive Sequences
- Index entries for linear recurrences with constant coefficients, signature (4,1).
-
I:=[2,7]; [n le 2 select I[n] else 4*Self(n-1) + Self(n-2): n in [1..30]]; // G. C. Greubel, Dec 20 2017
-
a[n_] := Expand[((2Sqrt[5] + 3)*(2 + Sqrt[5])^n + (2Sqrt[5] - 3)*(2 - Sqrt[5])^n)/(2Sqrt[5])]; Table[ a[n], {n, 0, 20}] (* Robert G. Wilson v, Sep 17 2004 *)
a[ n_] := (3 I ChebyshevT[ n + 1, -2 I] + 4 ChebyshevT[ n, -2 I]) I^n / 5; (* Michael Somos, Feb 23 2014 *)
a[ n_] := If[ n < 0, SeriesCoefficient[ (2 + 7 x) / (1 + 4 x - x^2), {x, 0, -n}], SeriesCoefficient[ (2 - x) / (1 - 4 x - x^2), {x, 0, n}]]; (* Michael Somos, Feb 23 2014 *)
LinearRecurrence[{4,1}, {2,7}, 50] (* G. C. Greubel, Dec 20 2017 *)
-
{a(n) = ( 3*I*polchebyshev( n+1, 1, -2*I) + 4*polchebyshev( n, 1, -2*I)) * I^n / 5}; \\ Michael Somos, Feb 23 2014
-
{a(n) = if( n<0, polcoeff( (2 + 7*x) / (1 + 4*x - x^2) + x * O(x^-n), -n), polcoeff( (2 - x) / (1 - 4*x - x^2) + x * O(x^n), n))}; \\ Michael Somos, Feb 23 2014
A138367
Count of post-period decimal digits up to which the rounded n-th convergent to sqrt(5) agrees with the exact value.
Original entry on oeis.org
0, 2, 4, 5, 6, 7, 8, 10, 8, 12, 14, 14, 16, 18, 19, 20, 21, 23, 24, 24, 26, 28, 29, 30, 31, 33, 33, 34, 35, 37, 39, 40, 41, 42, 44, 44, 46, 47, 48, 49, 51, 53, 53, 55, 56, 57, 59, 60, 60, 61, 64, 65, 66, 68, 69, 70, 72, 73, 74, 75, 76, 77, 79, 80, 81, 83, 83, 85, 85, 88, 89, 90, 91, 92
Offset: 1
For n=3, the 3rd convergent is 161/72 = 2.236111111..., with a sequence of rounded representations 2, 2.2, 2.24, 2.236, 2.2361, 2.23611, 2.236111, 2.2361111 etc.
Rounded to 1, 2, 3, or 4 post-period decimal digits, this is the same as the rounded version of the exact sqrt(5), but disagrees if both are rounded to 5 decimal digits, where 2.23607 <> 2.23611.
So a(3) = 4 (digits), the maximum rounding level of agreement.
Definition and values replaced as defined via continued fractions by
R. J. Mathar, Oct 01 2009
A075155
Cubes of Lucas numbers.
Original entry on oeis.org
8, 1, 27, 64, 343, 1331, 5832, 24389, 103823, 438976, 1860867, 7880599, 33386248, 141420761, 599077107, 2537716544, 10749963743, 45537538411, 192900170952, 817138135549, 3461452853383, 14662949322176, 62113250509227, 263115950765039, 1114577054530568
Offset: 0
Mario Catalani (mario.catalani(AT)unito.it), Sep 06 2002
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Mohammad K. Azarian, Identities Involving Lucas or Fibonacci and Lucas Numbers as Binomial Sums, International Journal of Contemporary Mathematical Sciences, Vol. 7, No. 45, 2012, pp. 2221-2227.
- Index entries for linear recurrences with constant coefficients, signature (3,6,-3,-1).
-
[ Lucas(n)^3 : n in [0..120]]; // Vincenzo Librandi, Apr 14 2011
-
CoefficientList[Series[(8 - 23*x - 24*x^2 + x^3)/((x^2 + 4*x - 1)*(x^2 - x - 1)), {x,0,50}], x] (* or *) Table[LucasL[n]^3, {n,0,30}] (* or *) LinearRecurrence[{3,6,-3,-1}, {8, 1, 27, 64}, 30] (* G. C. Greubel, Dec 21 2017 *)
-
a(n)=(fibonacci(n-1)+fibonacci(n+1))^3 \\ Charles R Greathouse IV, Feb 09 2016
-
from sympy import lucas
def a(n): return lucas(n)**3
print([a(n) for n in range(25)]) # Michael S. Branicky, Aug 01 2021
A108404
Expansion of (1-4x)/(1-8x+11x^2).
Original entry on oeis.org
1, 4, 21, 124, 761, 4724, 29421, 183404, 1143601, 7131364, 44471301, 277325404, 1729418921, 10784771924, 67254567261, 419404046924, 2615432135521, 16310012568004, 101710347053301, 634272638178364, 3955367287840601
Offset: 0
-
CoefficientList[Series[(1-4x)/(1-8x+11x^2),{x,0,30}],x] (* or *) LinearRecurrence[{8,-11},{1,4},30] (* Harvey P. Dale, Jan 03 2012 *)
A123747
Numerators of partial sums of a series for sqrt(5).
Original entry on oeis.org
1, 7, 41, 9, 239, 6227, 32059, 163727, 166301, 841229, 21215481, 106782837, 536618341, 538698461, 172897, 13538601629, 67813224223, 339532842359, 339895847771, 1700893049407, 42549895540939, 212857129279583, 1064706466190659, 1065035803419763, 5326468921246139
Offset: 0
a(3) = 9 because r(3) = 1+2/5+6/25+4/25 = 9/5 = a(3)/A123748(3).
-
List([0..25], n-> NumeratorRat(Sum([0..n], k-> Binomial(2*k,k)/5^k )) ); # G. C. Greubel, Aug 10 2019
-
[Numerator( (&+[Binomial(2*k,k)/5^k: k in [0..n]])): n in [0..25]]; // G. C. Greubel, Aug 10 2019
-
A123747:=n-> numer(sum(binomial(2*k,k)/5^k, k=0..n)); seq(A123747(n), n=0..25); # G. C. Greubel, Aug 10 2019
-
Table[Numerator[Sum[Binomial[2*k, k]/5^k, {k,0,n}]], {n, 0, 25}] (* G. C. Greubel, Aug 10 2019 *)
-
vector(25, n, n--; numerator(sum(k=0,n, binomial(2*k,k)/5^k))) \\ G. C. Greubel, Aug 10 2019
-
[numerator( sum(binomial(2*k,k)/5^k for k in (0..n)) ) for n in (0..25)] # G. C. Greubel, Aug 10 2019
Comments