You are given three integers n, s, and m.
Construct a sequence of length n starting with s, where the elements
For each
If
If
Return the maximum value present in the sequence.
Constraints:
n, s
m
You are given three integers n, s, and m.
Construct a sequence of length n starting with s, where the elements
For each
If
If
Return the maximum value present in the sequence.
Constraints:
n, s
m