All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers > Sequences
Term Finding with Floor (Posted on 2016-06-09) Difficulty: 3 of 5
A sequence {S(n)} is defined as:
S(1) = 1, and:
S(n+1)= S(n)+ floor(S(n)/n) + 2,
for n = 1,2,3,. ....

Find S(2016)

No Solution Yet Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution (spoiler) | Comment 1 of 3
DefDbl A-Z
Dim crlf$


Private Sub Form_Load()
 Form1.Visible = True
 
 
 Text1.Text = ""
 crlf = Chr$(13) + Chr$(10)
 
 s = 1
 For gen = 2 To 2016
   s = s + Int(s / (gen - 1)) + 2
 Next
 Text1.Text = Text1.Text & s
  
 Text1.Text = Text1.Text & crlf & " done"
  
End Sub

finds

24160
  Posted by Charlie on 2016-06-09 10:31:50
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (10)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information