a(1) = 1; for n > 1, a(n) = a(n-1)-p if there exists a prime p (take the smallest) that has not yet been used and is such that a(n) is new and > 0, otherwise a(n) = a(n-1)+p if the same conditions are satisfied.
A093903
a(1) = 1; for n > 1, a(n) = a(n-1)-p if there exists a prime p (take the smallest) that has not yet been used and is such that a(n) is new and > 0, otherwise a(n) = a(n-1)+p if the same conditions are satisfied.
Terms
- a(0) =1a(1) =3a(2) =6a(3) =11a(4) =4a(5) =15a(6) =2a(7) =19a(8) =38a(9) =9a(10) =32a(11) =63a(12) =26a(13) =67a(14) =24a(15) =71a(16) =18a(17) =77a(18) =16a(19) =83a(20) =12a(21) =85a(22) =164a(23) =81a(24) =170a(25) =73a(26) =174a(27) =65a(28) =168a(29) =61
External references
- oeis: A093903