85
177
251
base = 2 starting number = 4 current number = 10 iteration count = 1
base = 2 starting number = 4 current number = 21 iteration count = 2
base = 2 starting number = 4 current number = 31 iteration count = 3
base = 2 starting number = 6 current number = 11 iteration count = 1
base = 2 starting number = 8 current number = 11 iteration count = 1
base = 2 starting number = 9 current number = 14 iteration count = 1
base = 2 starting number = 9 current number = 23 iteration count = 2
base = 2 starting number = 10 current number = 21 iteration count = 1
base = 2 starting number = 10 current number = 31 iteration count = 2
base = 2 starting number = 12 current number = 43 iteration count = 1
base = 2 starting number = 14 current number = 23 iteration count = 1
base = 2 starting number = 15 current number = 29 iteration count = 1
base = 2 starting number = 16 current number = 20 iteration count = 1
base = 2 starting number = 16 current number = 85 iteration count = 2
base = 2 starting number = 16 current number = 177 iteration count = 3
base = 2 starting number = 16 current number = 251 iteration count = 4
base = 2 starting number = 18 current number = 46 iteration count = 1
base = 2 starting number = 18 current number = 87 iteration count = 2
base = 2 starting number = 18 current number = 125 iteration count = 3
base = 2 starting number = 18 current number = 23 iteration count = 4
base = 2 starting number = 20 current number = 85 iteration count = 1
base = 2 starting number = 20 current number = 177 iteration count = 2
base = 2 starting number = 20 current number = 251 iteration count = 3
base = 2 starting number = 21 current number = 31 iteration count = 1
base = 2 starting number = 22 current number = 43 iteration count = 1
base = 2 starting number = 24 current number = 47 iteration count = 1
base = 2 starting number = 25 current number = 22 iteration count = 1
base = 2 starting number = 25 current number = 43 iteration count = 2
base = 2 starting number = 26 current number = 45 iteration count = 1
base = 2 starting number = 26 current number = 117 iteration count = 2
base = 2 starting number = 26 current number = 237 iteration count = 3
base = 2 starting number = 26 current number = 463 iteration count = 4
base = 2 starting number = 27 current number = 15 iteration count = 1
base = 2 starting number = 27 current number = 29 iteration count = 2
base = 2 starting number = 28 current number = 87 iteration count = 1
base = 2 starting number = 28 current number = 125 iteration count = 2
base = 2 starting number = 28 current number = 23 iteration count = 3
base = 2 starting number = 30 current number = 93 iteration count = 1
base = 2 starting number = 30 current number = 127 iteration count = 2
base = 2 starting number = 32 current number = 21 iteration count = 1
base = 2 starting number = 32 current number = 31 iteration count = 2
base = 2 starting number = 33 current number = 59 iteration count = 1
base = 2 starting number = 34 current number = 81 iteration count = 1
base = 2 starting number = 34 current number = 28 iteration count = 2
base = 2 starting number = 34 current number = 87 iteration count = 3
base = 2 starting number = 34 current number = 125 iteration count = 4
base = 2 starting number = 34 current number = 23 iteration count = 5
base = 2 starting number = 35 current number = 47 iteration count = 1
base = 2 starting number = 36 current number = 174 iteration count = 1
base = 2 starting number = 36 current number = 381 iteration count = 2
base = 2 starting number = 36 current number = 511 iteration count = 3
base = 2 starting number = 36 current number = 969 iteration count =
For $n=217$ and for $d=2$ you get as an example a cycle which is not a prime:
$$217, 255, 945, 1007, 1269,1007,1269,1007\ldots$$