programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
• Campbell Ritchie
• Jeanne Boyarsky
• Ron McLeod
• Paul Clapham
• Liutauras Vilda
Sheriffs:
• paul wheaton
• Rob Spoor
• Devaka Cooray
Saloon Keepers:
• Stephan van Hulst
• Tim Holloway
• Carey Brown
• Frits Walraven
• Tim Moores
Bartenders:
• Mikalai Zaikin

# Sequence

Ranch Hand
Posts: 1907
1
• Number of slices to send:
Optional 'thank-you' note:
This one is quite easy.
Give the sequence of numbers such that any two adjacent numbers are coprime(relatively prime) and when bigger divided by smaller ,remainder is number adjacent to smaller one.(means smaller number is between 'bigger one' and remainder)

Ranch Hand
Posts: 128
• Number of slices to send:
Optional 'thank-you' note:
Is this correct looking at "b" and "c"
a b c d

a = remainder
b = small #
c = large #

Arjun Shastry
Ranch Hand
Posts: 1907
1
• Number of slices to send:
Optional 'thank-you' note:
Yes

Ranch Hand
Posts: 40
• Number of slices to send:
Optional 'thank-you' note:
1, 2, 3, 5, 13, 31, 74....ad infinitum

Arjun Shastry
Ranch Hand
Posts: 1907
1
• Number of slices to send:
Optional 'thank-you' note:
{
13, 31, 74
}
74%31 = 12
Actually the sequence consists of Fibonacci numbers.

Ryan Smith
Ranch Hand
Posts: 40
• Number of slices to send:
Optional 'thank-you' note:
Haha I skipped some didn't I! Sorry that's what I meant