LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default How to determine the formula to generate following numbers?

1.333, 1.5, 1.667, 1.75, 2, 3

I didn't find any sequence in a lookup, even for variations.
One remote database find was this "off the wall guess."

If n^(n + 2) + (n + 1)^(n + 3) is Prime, return (n+15)/12

Let's test it (using another program)

Table[If[PrimeQ[n^(n+2)+(n+1)^(n+3)],(n+15)/12.,],{n,21}]

{1.3333333333333333,,1.5,,1.6666666666666665,1.75, ,,2.,,,,,,,,,,,,3.}

Yeah. I know. it's a wild guess!!
The next two solutions would be 3.25, and 4.1666666666


Given the complexity of the prime test.. I'm impressed. Unfortunately, I
don't think this method will qualify as the "formula" Eric was looking for.

Rick

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate random numbers cawhitaker Excel Discussion (Misc queries) 3 September 27th 07 09:01 PM
How to generate #'s that excludes certain numbers? dojistar Excel Worksheet Functions 2 November 15th 05 06:52 PM
need a conditional formula to generate numbers divisible by 4 between a given starting no. & end No. ramana Excel Worksheet Functions 5 October 21st 05 07:39 AM
Generate new account numbers? Alan New Users to Excel 2 October 5th 05 09:15 PM
Generate consecutive numbers alexcooper2003 Excel Worksheet Functions 1 November 22nd 04 02:37 PM


All times are GMT +1. The time now is 02:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"