Applying operation P to the sequence A=a1,a2,…,an produces the sequence B=b1,b2,…,bn, where bi=a1∣a2∣⋯∣ai and ∣ is the bitwise OR operation.
Apply P to every sequence of length n whose entries are integers at least 1 and less than 2k. Write a program that counts the sequences whose result is increasing, that is, b1<b2<⋯<bn.