Arithmetic progression question

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
poissonspot
Messages
39
Reaction score
0
Hey,

What is the greatest number a k-term arithmetic progression starting with 1 can end in if each term is less than or equal to n? I'm looking to write this as an expression involving n and k in order to count the number of arithmetic progressions of length k with each term in $[n]$, that is the set of positive integers less than or equal to n.

Thx,

Edit:

It was good to ask the question. Here is the answer: 1+(k-1)*floor((n-1)/(k-1)).
If anyone has any remarks, questions as to how the above is true, shoot!

Thanks again,
 
Last edited:
Mathematics news on Phys.org