a(1) = 1; for n > 1, a(n+1)=a(n)-k if there exists a positive number k (take the smallest) that has not yet been used and is such that a(n+1) is new and >0, otherwise a(n+1) = a(n)+k if the same conditions are satisfied.
A100707
a(1) = 1; for n > 1, a(n+1)=a(n)-k if there exists a positive number k (take the smallest) that has not yet been used and is such that a(n+1) is new and >0, otherwise a(n+1) = a(n)+k if the same conditions are satisfied.
Terms
- a(0) =1a(1) =2a(2) =4a(3) =7a(4) =3a(5) =8a(6) =14a(7) =6a(8) =13a(9) =22a(10) =12a(11) =23a(12) =11a(13) =24a(14) =10a(15) =25a(16) =9a(17) =26a(18) =5a(19) =27a(20) =45a(21) =21a(22) =40a(23) =20a(24) =43a(25) =18a(26) =44a(27) =17a(28) =46a(29) =16
External references
- oeis: A100707