#JSUTCPC2026D. Shimokita Function II —— 下北泽函数 II
Shimokita Function II —— 下北泽函数 II
Problem Description
Just indulge in your own fantasy!
Given an elliptic equation satisfying , if the trajectory of the ellipse passes through a point where both the horizontal and vertical coordinates are integers, then is called an "elliptic number". For example, is an "elliptic number" because satisfies the condition, while is not an "elliptic number".
Given a number , find the sum of the factors of each number from to that are "elliptic number".
Input
Input a positive integer satisfying .
Output
Output a line containing integers, separated by spaces.
Samples
6
1 1 4 5 1 4
Note
When , its factors are , where and are "elliptic number", so the th digit is output as .
When , its factors are , where and are "elliptic number", so the th digit outputs .