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!)
A249916 a(n) = 4*(n - 1) - a(n-3), n >= 3, a(0) = a(1) = 1, a(2) = 5. 0

%I #44 May 10 2020 09:17:26

%S 1,1,5,7,11,11,13,13,17,19,23,23,25,25,29,31,35,35,37,37,41,43,47,47,

%T 49,49,53,55,59,59,61,61,65,67,71,71,73,73,77,79,83,83,85,85,89,91,95,

%U 95,97,97,101,103,107,107,109,109,113,115,119,119,121,121,125,127

%N a(n) = 4*(n - 1) - a(n-3), n >= 3, a(0) = a(1) = 1, a(2) = 5.

%C Conjecture: These are the natural numbers of the form 6*j +- 1 in which those of the form 12*k +- 1 are repeated.

%C From _Jianing Song_, Jan 28 2019: (Start)

%C The second conjecture in Formula section is correct.

%C We can see this from the recurrence: a(n) = 4*(n - 1) - a(n-3) (1)

%C Replace n with n+1: a(n+1) = 4*n - a(n-2) (2)

%C Subtract (1) from (2): a(n+1) = 4 + a(n) - a(n-2) + a(n-3) (3)

%C Replace n with n+1: a(n+2) = 4 + a(n+1) - a(n-1) + a(n-2) (4)

%C Subtract (3) from (4): a(n+2) = 2*a(n+1)-a(n)-a(n-1)+2*a(n-2)-a(n-3) (5)

%C This also confirms the conjecture in Comment section and the conjecture on the g.f. in Formula section. (End)

%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (2,-1,-1,2,-1).

%F G.f.: (1 - x + 4*x^2 - x^3 + x^4)/((1 - x)^2*(1 + x^3)). [Confirmed, see _Jianing Song_ in Comment section.]

%F Recurrence: a(n) = 2*a(n-1) - a(n-2) - a(n-3) + 2*a(n-4) - a(n-5) for n > 4, a(0)=a(1)=1, a(2)=5, a(3)=7, a(4)=11. [Confirmed, see _Jianing Song_ in Comment section.]

%t a[0] = a[1] = 1; a[2] = 5; a[n_] := 4*(n - 1) - a[n - 3]; Table[a[n], {n, 0, 63}]

%t RecurrenceTable[{a[0]==a[1]==1,a[2]==5,a[n]==4(n-1)-a[n-3]},a,{n,70}] (* _Harvey P. Dale_, Jan 26 2019 *)

%Y Cf. A007310, A091998.

%K nonn,easy

%O 0,3

%A _L. Edson Jeffery_, Jan 14 2015

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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)