Skip to content
GATEiit

GATE CSE 2020 Q12: Solve T(n) = T(n^(1/a)) + 1 with T(b) = 1

Question

For parameters aa and bb, both of which are ω(1)\omega(1), T(n)=T(n1/a)+1T(n) = T(n^{1/a}) + 1, and T(b)=1T(b) = 1. Then T(n)T(n) is

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: A (official GATE 2020 final answer key)

Concept used: Count how many times nn can be replaced by its aa-th root before it reaches the base value bb.

First step: After kk steps the argument is n1/akn^{1/a^k}; set n1/ak=bn^{1/a^k} = b and solve for kk.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2020 CS question paper and final answer key, organised by IIT Delhi. Question paper · Answer key