โ† Arcesium questions

Print nth element of a given series

Filed under Arcesium

Write a function to find the nth term of the series: 1, 1, 2, 4, 8, 16, 32, ..., where the first term is 1 and subsequent terms follow powers of 2.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Arcesium questions

Collected from public candidate posts and coding forums. Updated Nov 2026.