Given n, define a(n) as follows: let a sequence b(k) be defined by b(k+1)=b(k)+b(k)mod k; b(1)=2n-1. (Here b(k)mod k denotes the least nonnegative residue of b(k) modulo k). Let a(n) be the common value of b(k+1)-b(k) for all large k if such exists; otherwise let a(n) be 0.
A117846
Given n, define a(n) as follows: let a sequence b(k) be defined by b(k+1)=b(k)+b(k)mod k; b(1)=2n-1. (Here b(k)mod k denotes the least nonnegative residue of b(k) modulo k). Let a(n) be the common value of b(k+1)-b(k) for all large k if such exists; otherwise let a(n) be 0.
Terms
- a(0) =97a(1) =1a(2) =2a(3) =2a(4) =316a(5) =2a(6) =3a(7) =3a(8) =3a(9) =4a(10) =12a(11) =4a(12) =4a(13) =12a(14) =11a(15) =11a(16) =316a(17) =11a(18) =316a(19) =316a(20) =6a(21) =316a(22) =316a(23) =316a(24) =316a(25) =97a(26) =316a(27) =316a(28) =13a(29) =316
External references
- oeis: A117846