If it is $4.00 per gallon then we need to find the price of 7 gallons.
7 * 4.00 = 28
so it costs $28 to travel 350 miles.
no to find the cost per mile, we need to divide.
350 / 28 = 12.5
so the cost to run the car per mile is $12.50
Actual distance of the Harper from the school = 50 yards.
According to map the distance from the school = 34 inch.
We could say 34 inches represents 50 yards.
So, 1 inches could be represented by 50/34 = 25/17 yards.
In order to find the actual length of 3 inches in yards, we need to multiply 1 inches value of yards by 3.
Therefore, 3 inches = 3* 25/17 = 75/17 = 4 7/17 yeards in decimals 4.412 yards approximately.
Therefore, Harper from home is 4 7/17 yeards or 4.412 yards approximately if the map shows the distance as 3 inches.
There really is no single "obvious" choice here...
Possibly the sequence is periodic, with seven copies of -1 followed by six copies of 0, or perhaps seven -1s and seven 0s. Or maybe seven -1s, followed by six 0s, then five 1s, and so on, but after a certain point it would seem we have to have negative copies of a number, which is meaningless.
Or maybe it's not periodic, and every seventh value in the sequence is incremented by 1? Who knows?
I'll go ahead and assume the latter case, that the sequence is not periodic, since that's technically somewhat easier to manage. We can assign the following rule to the

-th term in the sequence:


for

.
So the generating function for this sequence might be

As to what is meant by "closed form", I'm not sure. Would this answer be acceptable? Or do you need to find a possibly more tractable form for the coefficient not in terms of the floor function?