This is not true. a cannot be part of the big-O formula, because it is just a temporary variable.
On top of my head, if we take multiplication by a constant-time operation, then the number of multiplications performed will be O (log log n) . If you multiplied by a constant for each iteration, then that would be O (log n). As you multiply an increasing number by each iteration, there is another log.
Think of it as the number of digits doubling each iteration. How many times can you double the number of digits before the limit is exceeded? The number of digits is log n, and you can double the logbook twice 2 log n times.
Regarding another aspect of the question, yes, O (the a-th root of n) may be an admissible complexity class for some constant a. It would be better written as O (n 1 / a ) .
John kugelman
source share