Is there a closed-form expression for any $n$th term in this sequence?
$P(n)$ $=$ $1, 41, 973, 18737, 324901, 5305769, 83478781, 1281629537, 19347016213, 288544903001.........$ $=$ $?$
Hint: This sequence is very similar to:
$M(n)$ $=$ $1, 3, 7, 15, 31, 63, 127, 255, 511, 1023.........$ $=$ $2^n-1$ for any given $n$th term
Thanks for showing how to come up with a closed form for $P(n)$. There is no randomness used in both sequences.