A digit in a sequence

Problem Name:
A digit in a sequence
Site:HackerEarth
Links:
Tags:
Problem setters: