A bi-infinite sequence means a sequence that is infinite in both directions. In other words, it means a function whose domain is the set of all integers. The writer of this problem defined their bi-infinite sequence (K_n)_n∈Z and called it "KSA bi-infinite sequence" with a parameter t where t is a positive integer. It satisfies the following for all integers n.
Write a function biinfinite:
int-type objects whose values are t and n, respectively, where 1≤t≤8 and ∣n∣≤1012int-type object whose value is ⌊K_n⌋−M⌊MK_n⌋ where M=202112210950 and K_n is the n-th term of KSA bi-infinite sequence with a parameter t