Up go the bits! – codegolf.stackexchange.com

Given an integer N perform the following steps: (using 9 as an example).
Receive input N. (9)
Convert N from base10 to base2. (1001)
Increase every bit by 1. (2112)
Treat the result as base3 and …

For Get Answer – Click here

Leave a Reply

Your email address will not be published. Required fields are marked *