OFFSET
0,3
COMMENTS
In general, the numerators of n/(n+p) for prime p and n >= 0, form a sequence with the g.f.: x/(1-x)^2 - (p-1)*x^p/(1-x^p)^2. - Paul D. Hanna, Jul 27 2005
a(n) <> n iff n = 13 * k, in this case, a(n) = k. - Bernard Schott, Feb 19 2019
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,-1).
FORMULA
G.f.: x/(1-x)^2 - 12*x^13/(1-x^13)^2. - Paul D. Hanna, Jul 27 2005
Dirichlet g.f.: zeta(s-1)*(1-12/13^s). - R. J. Mathar, Apr 18 2011
a(n) = 2*a(n-13) - a(n-26). - G. C. Greubel, Feb 19 2019
From Amiram Eldar, Nov 25 2022: (Start)
Multiplicative with a(13^e) = 13^(e-1), and a(p^e) = p^e if p != 13.
Sum_{k=1..n} a(k) ~ (157/338) * n^2. (End)
Sum_{n>=1} (-1)^(n+1)/a(n) = 25*log(2)/13. - Amiram Eldar, Sep 08 2023
MAPLE
seq(numer(n/(n+13)), n=0..80); # Muniru A Asiru, Feb 19 2019
MATHEMATICA
f[n_]:=Numerator[n/(n+13)]; Array[f, 100, 0] (* Vladimir Joseph Stephan Orlovsky, Feb 17 2011 *)
PROG
(Sage) [lcm(n, 13)/13for n in range(0, 100)] # Zerinvary Lajos, Jun 09 2009
(Magma) [Numerator(n/(n+13)): n in [0..100]]; // Vincenzo Librandi, Apr 18 2011
(PARI) vector(100, n, n--; numerator(n/(n+13))) \\ G. C. Greubel, Feb 19 2019
(PARI) a(n)=if(n%13, n, n/13) \\ Charles R Greathouse IV, Jan 24 2022
(GAP) List([0..80], n->NumeratorRat(n/(n+13))); # Muniru A Asiru, Feb 19 2019
CROSSREFS
KEYWORD
nonn,frac,mult,easy
AUTHOR
N. J. A. Sloane, May 15 2005
STATUS
approved