Hi,

If I have an ordered array of odd positive integers (1,3,5,7,9,11,.....)
it's not hard to express (in terms of n) the value of the integer at index
position n:
value = (2 * n) + 1

Similarly, if I have an ordered array of odd positive integers that are also
not divisible by 3 (1,5,7,11,13,17,19,23,25,29,31,35,37...) it's not hard to
express (in terms of n) the value of the integer at index position n:
value = (2 * n) + 1 + (int((n + 1) / 2) * 2)

But what if I have an ordered array of odd positive integers that are also
not divisible by both 3 and 5 (1,7,11,13,17,19,23,29,31,37...) ?
For that array, I haven't yet found a way of expressing (in terms of n) the
value of the integer at index n.

Does anyone have a solution ? .... or links to a solution/discussion ?

Cheers,
Rob




_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to