SharedEX8.ipynbOpen in CoCalc
EX08
def pesquise(n):

if n <= 1:
print(n)
return

for i in range(n):
print(n)

pesquise(n/3)

pesquise(9)

9 9 9 9 9 9 9 9 9 3 3 3 1
pesquise(6)

6 6 6 6 6 6 2 2 2/3
pesquise(15)

15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 5 5 5 5 5 5/3 5/9