about summary refs log tree commit diff
path: root/others/other/bunny.py
blob: befe2885747a8f5b80f461262fd53290deed3bc1 (plain) (blame)
1
2
3
4
#!/usr/bin/env python3
with open('bunny.inp') as fi, open('bunny.out', 'w') as fo:
    # OEIS A069905 (http://oeis.org/A069905)
    print(((int(fi.read()) + 3) ** 2 + 6) // 12 % 10 ** 6, file=fo)