human
Find n | Returns n - th number in sequence 1 , 1 , 2 , 1 , 2 , 3 , 1 , 2 , 4 , ....
One by one subtract counts elements in different blocks.
Driver code"
How can the above be solved in Python?
 ... Give me a code to find n and the other steps required?
assistant
#Here is code to find n and the other steps required.
 def findNumber ( n ) :
	n -= 1
	i = 1
	while n >= 0 :
		n -= i
		i += 1
	return ( n + i )
n = 3
print ( findNumber ( n ) )