OFFSET
1,1
COMMENTS
Original name: Numbers n such that n/A259748(n) = 2.
LINKS
Danny Rorabaugh, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
A259748(a(n))/a(n) = 1/2.
a(n) = 2*A168489(n) - Danny Rorabaugh, Oct 22 2015
From Colin Barker, Aug 26 2016: (Start)
a(n) = a(n-1)+a(n-2)-a(n-3) for n>3.
G.f.: 2*x*(7+4*x+x^2) / ((1-x)^2*(1+x)).
(End)
Sum_{n>=1} (-1)^(n+1)/a(n) = sqrt(3)*Pi/24 - log(2+sqrt(3))/(4*sqrt(3)). - Amiram Eldar, Dec 31 2021
E.g.f.: 2*(1 + 6*x*exp(x) - exp(-x)). - David Lovler, Sep 06 2022
MATHEMATICA
A[n_] := A[n] = Sum[a b, {a, 1, n}, {b, a + 1, n}] ; Select[Range[600], Mod[A[#], #]/# == 1/2 & ]
PROG
(PARI) vector(100, n, 2*(6*n-(-1)^n)) \\ Altug Alkan, Oct 23 2015
(PARI) Vec(2*x*(7+4*x+x^2)/((1-x)^2*(1+x)) + O(x^100)) \\ Colin Barker, Aug 26 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
José María Grau Ribas, Jul 04 2015
EXTENSIONS
Better name from Danny Rorabaugh, Oct 22 2015
STATUS
approved