a(0)=1. a(n) = a(n-1) + (smallest integer that is >= n and occurs among the earlier terms of the sequence).
A118029
a(0)=1. a(n) = a(n-1) + (smallest integer that is >= n and occurs among the earlier terms of the sequence).
Terms
- a(0) =1a(1) =2a(2) =4a(3) =8a(4) =12a(5) =20a(6) =28a(7) =36a(8) =44a(9) =56a(10) =68a(11) =80a(12) =92a(13) =112a(14) =132a(15) =152a(16) =172a(17) =192a(18) =212a(19) =232a(20) =252a(21) =280a(22) =308a(23) =336a(24) =364a(25) =392a(26) =420a(27) =448a(28) =476a(29) =512
External references
- oeis: A118029