Stern's sequence: a(1) = 1, a(n+1) is the sum of the m preceding terms, where m*(m-1)/2 < n <= m*(m+1)/2 or equivalently m = ceiling((sqrt(8*n+1)-1)/2) = A002024(n).
A005230
Stern's sequence: a(1) = 1, a(n+1) is the sum of the m preceding terms, where m*(m-1)/2 < n <= m*(m+1)/2 or equivalently m = ceiling((sqrt(8*n+1)-1)/2) = A002024(n).
Terms
- a(0) =1a(1) =1a(2) =2a(3) =3a(4) =6a(5) =11a(6) =20a(7) =40a(8) =77a(9) =148a(10) =285a(11) =570a(12) =1120a(13) =2200a(14) =4323a(15) =8498a(16) =16996a(17) =33707a(18) =66844a(19) =132568a(20) =262936a(21) =521549a(22) =1043098a(23) =2077698a(24) =4138400a(25) =8243093a(26) =16419342a(27) =32706116a(28) =65149296a(29) =130298592
External references
- oeis: A005230