[go: up one dir, main page]

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!)
A131093 a(1)=1, a(n) = a(n-1) + sum of odd numbers which are among the first (n-1) terms of the sequence. 4

%I #9 Dec 18 2020 11:59:25

%S 1,2,3,7,18,29,69,178,287,683,1762,2841,6761,17442,28123,66927,172658,

%T 278389,662509,1709138,2755767,6558163,16918722,27279281,64919121,

%U 167478082,270037043,642633047,1657862098,2673091149

%N a(1)=1, a(n) = a(n-1) + sum of odd numbers which are among the first (n-1) terms of the sequence.

%C a(n) mod 2 = A011655(n+1);

%C a(n) = a(n-1) + Sum(a(k)*(a(k) mod 2): 1<=k<n), a(1) = 1.

%H Harvey P. Dale, <a href="/A131093/b131093.txt">Table of n, a(n) for n = 1..1000</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/OddNumber.html">Odd Number</a>

%F Empirical g.f.: -x*(x-1)*(x^4+3*x^3+6*x^2+3*x+1) / (x^6-10*x^3+1). - _Colin Barker_, Mar 29 2013

%t nxt[{ot_,a_}]:=Module[{x=a+ot},{If[OddQ[x],ot+x,ot],x}]; NestList[nxt,{1,1},30][[All,2]] (* _Harvey P. Dale_, Dec 18 2020 *)

%Y Cf. A096777, A101135.

%K nonn

%O 1,2

%A _Reinhard Zumkeller_, Jun 14 2007

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 August 30 13:06 EDT 2024. Contains 375543 sequences. (Running on oeis4.)