OFFSET
0,2
COMMENTS
The initial terms coincide with those of A003945, although the two sequences are eventually different.
First disagreement at index 17: a(17) = 196605, A003945(17) = 196608. - Klaus Brockhaus, Mar 30 2011
Computed with Magma using commands similar to those used to compute A154638.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (2,-1,2,-1,2,-1,2,-1,2,-1,2,-1,2,-1,2,-1).
FORMULA
G.f.: (t^16 + t^15 + t^14 + t^13 + t^12 + t^11 + t^10 + t^9 + t^8 + t^7 + t^6 + t^5 + t^4 + t^3 + t^2 + t + 1)/(t^16 - 2*t^15 + t^14 - 2*t^13 + t^12 - 2*t^11 + t^10 - 2*t^9 + t^8 - 2*t^7 + t^6 - 2*t^5 + t^4 - 2*t^3 + t^2 - 2*t + 1).
G.f.: (1+t)*(1-t^17)/(1 -2*t +2*t^17 -t^18). - G. C. Greubel, Feb 22 2021
MATHEMATICA
CoefficientList[Series[(1+t)*(1-t^17)/(1 -2*t +2*t^17 -t^18), {t, 0, 40}], t] (* G. C. Greubel, Jul 29 2016, Feb 22 2021 *)
PROG
(PARI) Vec(Pol(vector(17, i, 1))/Pol(vector(17, i, if(i%2, 1, -2)))+O(x^99)) \\ Charles R Greathouse IV, Jul 30 2016
(Magma)
R<t>:=PowerSeriesRing(Integers(), 40);
Coefficients(R!( (1+t)*(1-t^17)/(1 -2*t +2*t^17 -t^18) )); // G. C. Greubel, Feb 22 2021
(SageMath)
def A168680_list(prec):
P.<t> = PowerSeriesRing(ZZ, prec)
return P( (1+t)*(1-t^17)/(1 -2*t +2*t^17 -t^18) ).list()
A168680_list(40) # G. C. Greubel, Feb 22 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
John Cannon and N. J. A. Sloane, Dec 03 2009
STATUS
approved
