For n=1,2,3,..., define b(n) as follows: initialize v at v=n; then for k=2,3,4,..., if v>0 and k divides v, replace v with v-k. Set b(n)=v. Then {a(n)} is the subsequence consisting of the nonzero terms of {b(n)}.
A066937
For n=1,2,3,..., define b(n) as follows: initialize v at v=n; then for k=2,3,4,..., if v>0 and k divides v, replace v with v-k. Set b(n)=v. Then {a(n)} is the subsequence consisting of the nonzero terms of {b(n)}.
Terms
- a(0) =1a(1) =2a(2) =3a(3) =4a(4) =5a(5) =7a(6) =6a(7) =8a(8) =11a(9) =10a(10) =13a(11) =9a(12) =17a(13) =12a(14) =19a(15) =14a(16) =23a(17) =16a(18) =20a(19) =15a(20) =29a(21) =31a(22) =22a(23) =18a(24) =25a(25) =21a(26) =26a(27) =37a(28) =24a(29) =41
External references
- oeis: A066937