mpo119.py

Created by schraf

Created on July 28, 2023

277 Bytes


from math import *

def f(n): return int(193.5 - 89 * sin(radians(77 * n)))

def pas_floyd(f, n):
  a = []
  while n not in a:
    a.append(n)
    n = f(n)
  t = a.index(n)
  return t, n, len(a) - t

while True:
 n = int(input('n ? '))  
 print(n,pas_floyd(f,n))