You are viewing a single comment's thread. Return to all comments →
C++ solution:
long strangeCounter(long t) { return 6*pow(2,floor(log2((1+(t-1)/3))))-2-t; }
Seems like cookies are disabled on this browser, please enable them to open this website
Strange Counter
You are viewing a single comment's thread. Return to all comments →
C++ solution: