login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A124925 Interlaced triples: a(3n+1)=1, a(3n+2) = 2n+3, a(3n+3)= A028387(n). 1
1, 3, 1, 1, 5, 5, 1, 7, 11, 1, 9, 19, 1, 11, 29, 1, 13, 41, 1, 15, 55, 1, 17, 71, 1, 19, 89, 1, 21, 109, 1, 23, 131, 1, 25, 155, 1, 27, 181, 1, 29, 209, 1, 31, 239, 1, 33, 271, 1, 35, 305, 1, 37, 341, 1, 39, 379, 1, 41, 419, 1, 43, 461, 1, 45, 505, 1, 47, 551, 1, 49, 599, 1, 51, 649, 1, 53 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Three consecutive terms of the sequence define a polynomial a(3n+1)*x^2 - a(3n+2)*x +a(3n+3) which has a root x = 1 + n + golden ratio.
LINKS
FORMULA
a(n) = 3*a(n-3) -3*a(n-6) +a(n-9).
G.f.: x*(-1-3*x-x^2+2*x^3+4*x^4-2*x^5-x^6-x^7+x^8)/((x-1)^3*(1+x+x^2)^3).
MAPLE
seq(coeff(series(x*(-1-3*x-x^2+2*x^3+4*x^4-2*x^5-x^6-x^7+x^8)/((x-1)^3*( 1+x+x^2)^3), x, n+1), x, n), n = 1 ..80); # G. C. Greubel, Nov 19 2019
MATHEMATICA
Rest@CoefficientList[Series[x*(-1-3*x-x^2+2*x^3+4*x^4-2*x^5-x^6-x^7+x^8 )/((x-1)^3*(1+x+x^2)^3), {x, 0, 80}], x] (* G. C. Greubel, Nov 19 2019 *)
LinearRecurrence[{0, 0, 3, 0, 0, -3, 0, 0, 1}, {1, 3, 1, 1, 5, 5, 1, 7, 11}, 80] (* Harvey P. Dale, Jan 16 2024 *)
PROG
(PARI) my(x='x+O('x^80)); Vec(x*(-1-3*x-x^2+2*x^3+4*x^4-2*x^5-x^6-x^7+ x^8)/((x-1)^3*(1+x+x^2)^3)) \\ G. C. Greubel, Nov 19 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 80); Coefficients(R!( x*(-1-3*x-x^2+2*x^3+4*x^4-2*x^5-x^6-x^7+x^8)/((x-1)^3*(1+x+x^2)^3) )); // G. C. Greubel, Nov 19 2019
(Sage)
def A124925_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P(x*(-1-3*x-x^2+2*x^3+4*x^4-2*x^5-x^6-x^7+x^8)/((x-1)^3*(1+x+x^2)^3)).list()
a=A124925_list(80); a[1:] # G. C. Greubel, Nov 19 2019
(GAP) a:=[1, 3, 1, 1, 5, 5, 1, 7, 11];; for n in [10..80] do a[n]:=3*a[n-3]-3*a[n-6]+a[n-9]; od; a; # G. C. Greubel, Nov 19 2019
CROSSREFS
Cf. A001622.
Sequence in context: A300923 A301531 A158418 * A073145 A245368 A354971
KEYWORD
nonn,easy,less
AUTHOR
Gary W. Adamson, Nov 12 2006
EXTENSIONS
Edited and extended by R. J. Mathar, Mar 28 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 5 01:52 EDT 2024. Contains 372257 sequences. (Running on oeis4.)