Masala #0485
Ketma-ketlik
Sizga quyidagi ketma-ketlik berilgan:
3, 4, 7, 10, 16, 21, 30, ...
Ketma-ketlikning \(n\)-hadini toping.
Kiruvchi ma'lumotlar:
Kirish faylining yagona satrida butun son \(n (1≤n≤50)\) ni kiriting.
Chiquvchi ma'lumotlar:
Chiqish faylida so'ralgan javobni chiqaring.
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
1 |
3 |
2 |
30 |
832153 |