Guest User

Untitled

a guest
Feb 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. package main
  2.  
  3. // The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of
  4. // natural numbers such that n appears exactly G(n) times in the sequence.
  5. // The values of G(n) for the first few n are
  6. //
  7. // n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 …
  8. // G(n) 1 2 2 3 3 4 4 4 5 5 5 6 6 6 6 …
  9. //
  10. // You are given that G(103) = 86, G(106) = 6137.
  11. // You are also given that ΣG(n3) = 153506976 for 1 n 103.
  12. //
  13. // Find ΣG(n3) for 1 n 106.
  14. //
  15.  
  16. func main () {
  17.  
  18. }
Add Comment
Please, Sign In to add comment