Can someone pls help with this problem

Revision en3, by 650iq, 2024-03-17 14:34:44

You are given an integer x which is initially 1. In one move You can perform either of the 2 operations — make x = x-1 or x=2*x. You need to perform exactly K such operations. Find if it is possible to make number N from X. Note N and K is very high upto 10^18.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English 650iq 2024-03-17 14:34:44 8 Tiny change: 'e You can either of' -> 'e You can perform either of'
en2 English 650iq 2024-03-17 14:34:25 35
en1 English 650iq 2024-03-17 14:33:22 270 Initial revision (published)