goo hey

goo hey

  • NA
  • 29
  • 4.7k

Recursive algorithmn using python

Jun 26 2020 5:04 PM
Trying to figure out some recursive algorithm using python new to the language can anyone with knowledge offer any help would greately appriciated.
 
so far have done to get n = 2n - 1
 
def new(n):if n == 1: return 1return 1 + 2 * new(n-1)  
 
 

Answers (1)