OFFSET
1,1
COMMENTS
u(3)=7, sum(k>=1,u(k)) = 28 is an integer, hence 7 is in the sequence.
FORMULA
Conjecture: a(n) = -3+2^(1/2*(-5+n))*(10-10*(-1)^n+9*sqrt(2)+9*(-1)^n*sqrt(2)). a(n) = a(n-1)+2*a(n-2)-2*a(n-3). G.f.: x*(3*x^2-4*x-2) / ((x-1)*(2*x^2-1)). - Colin Barker, Aug 14 2013
PROG
(PARI)
A078113(maxn, maxk) = {
u=vector(maxk);
u[1]=1; u[2]=1;
for(n=1, maxn,
u[3]=n;
for(k=4, maxk, u[k]=abs(2*u[k-1]-u[k-2]-u[k-3])/2);
s=sum(i=1, maxk, u[i]);
if(ceil(s)-s < 1E-11, print1(n, ", ")) \\ Arbitrary 1E-11
)
}
A078113(1000000, 200) \\ Colin Barker, Aug 14 2013
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Benoit Cloitre, Dec 04 2002
EXTENSIONS
More terms from Colin Barker, Aug 14 2013
STATUS
approved