a(1)=1. a(n) = a(n-1) + (largest integer which is <= n and occurs among the earlier terms of the sequence).
A118030
a(1)=1. a(n) = a(n-1) + (largest integer which is <= n and occurs among the earlier terms of the sequence).
Terms
- a(0) =1a(1) =2a(2) =4a(3) =8a(4) =12a(5) =16a(6) =20a(7) =28a(8) =36a(9) =44a(10) =52a(11) =64a(12) =76a(13) =88a(14) =100a(15) =116a(16) =132a(17) =148a(18) =164a(19) =184a(20) =204a(21) =224a(22) =244a(23) =264a(24) =284a(25) =304a(26) =324a(27) =352a(28) =380a(29) =408
External references
- oeis: A118030