summaryrefslogtreecommitdiff
path: root/progs/a447.py
blob: 3ccb78f99391884f0fb182941bfd3e60baef39d6 (plain)
1
2
3
4
5
def sequence(n): 
	if n == 1 or n == 2: 
		return 1
	else: 
		return sequence(sequence(n-1)) + sequence(n-sequence(n-1))