Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to determine the formula?

Does anyone have any suggestions on how to determine the formula for
following series?

The 1 st number is n
Ther 2 nd number is Power(Sqrt(n)+2,2),
The 3 rd number is Power(Sqrt(Power(Sqrt(n)+2,2))+2,2), then substitute the
previous value into the same formula format.
The 4 th number is Power(Sqrt(Power(Sqrt(Power(Sqrt(n)+2,2))+2,2))+2, 2),
The 5 th number is Power(Sqrt([Previous value])+2,2),

Does anyone have any suggestions on how to determine this repeated structure
in a formula? therefore, if the any number is given, then I can determine the
result directly rather than calculate a list of values in order to get the
result.
Thank in advance for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How to determine the formula?

An example might help because I am confused by then substitute the
previous value into the same formula format.

n=2
first = 3
second =
etc
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Eric" wrote in message
...
Does anyone have any suggestions on how to determine the formula for
following series?

The 1 st number is n
Ther 2 nd number is Power(Sqrt(n)+2,2),
The 3 rd number is Power(Sqrt(Power(Sqrt(n)+2,2))+2,2), then substitute
the
previous value into the same formula format.
The 4 th number is Power(Sqrt(Power(Sqrt(Power(Sqrt(n)+2,2))+2,2))+2, 2),
The 5 th number is Power(Sqrt([Previous value])+2,2),

Does anyone have any suggestions on how to determine this repeated
structure
in a formula? therefore, if the any number is given, then I can determine
the
result directly rather than calculate a list of values in order to get the
result.
Thank in advance for any suggestions
Eric



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How to determine the formula?

Try this small UDF:

Function eric(v As Variant, n As Integer) As Double
Dim tw As Double
tw = 2
eric = v
For i = 1 To n
eric = (eric ^ 0.5 + tw) ^ tw
Next
End Function

So
=eric(3,2) displays
32.85640646

--
Gary''s Student - gsnu200745


"Eric" wrote:

Does anyone have any suggestions on how to determine the formula for
following series?

The 1 st number is n
Ther 2 nd number is Power(Sqrt(n)+2,2),
The 3 rd number is Power(Sqrt(Power(Sqrt(n)+2,2))+2,2), then substitute the
previous value into the same formula format.
The 4 th number is Power(Sqrt(Power(Sqrt(Power(Sqrt(n)+2,2))+2,2))+2, 2),
The 5 th number is Power(Sqrt([Previous value])+2,2),

Does anyone have any suggestions on how to determine this repeated structure
in a formula? therefore, if the any number is given, then I can determine the
result directly rather than calculate a list of values in order to get the
result.
Thank in advance for any suggestions
Eric

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default How to determine the formula?

Does anyone have any suggestions on how to determine this repeated
structure


I believe this is correct:

Function Fx(n, k)
' n Number
' k Number of iterations

Fx = (2 * k + Sqrt(n) - 2) ^ 2
End Function

--
HTH :)
Dana DeLouis
Windows XP & Excel 2007


"Gary''s Student" wrote in message
...
Try this small UDF:

Function eric(v As Variant, n As Integer) As Double
Dim tw As Double
tw = 2
eric = v
For i = 1 To n
eric = (eric ^ 0.5 + tw) ^ tw
Next
End Function

So
=eric(3,2) displays
32.85640646

--
Gary''s Student - gsnu200745


"Eric" wrote:

Does anyone have any suggestions on how to determine the formula for
following series?

The 1 st number is n
Ther 2 nd number is Power(Sqrt(n)+2,2),
The 3 rd number is Power(Sqrt(Power(Sqrt(n)+2,2))+2,2), then substitute
the
previous value into the same formula format.
The 4 th number is Power(Sqrt(Power(Sqrt(Power(Sqrt(n)+2,2))+2,2))+2, 2),
The 5 th number is Power(Sqrt([Previous value])+2,2),

Does anyone have any suggestions on how to determine this repeated
structure
in a formula? therefore, if the any number is given, then I can determine
the
result directly rather than calculate a list of values in order to get
the
result.
Thank in advance for any suggestions
Eric



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default How to determine the formula?

Oops. Try this instead.

Function Fx(n, k)
' n Number
' k Number of iterations

Fx = (2 * k + Sqr(n) - 2) ^ 2
End Function

--
Dana DeLouis
Windows XP & Excel 2007


"Gary''s Student" wrote in message
...
Try this small UDF:

Function eric(v As Variant, n As Integer) As Double
Dim tw As Double
tw = 2
eric = v
For i = 1 To n
eric = (eric ^ 0.5 + tw) ^ tw
Next
End Function

So
=eric(3,2) displays
32.85640646

--
Gary''s Student - gsnu200745


"Eric" wrote:

Does anyone have any suggestions on how to determine the formula for
following series?

The 1 st number is n
Ther 2 nd number is Power(Sqrt(n)+2,2),
The 3 rd number is Power(Sqrt(Power(Sqrt(n)+2,2))+2,2), then substitute
the
previous value into the same formula format.
The 4 th number is Power(Sqrt(Power(Sqrt(Power(Sqrt(n)+2,2))+2,2))+2, 2),
The 5 th number is Power(Sqrt([Previous value])+2,2),

Does anyone have any suggestions on how to determine this repeated
structure
in a formula? therefore, if the any number is given, then I can determine
the
result directly rather than calculate a list of values in order to get
the
result.
Thank in advance for any suggestions
Eric





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default How to determine the formula?

The 1 st number is n

Hi. I had k=1 return the original number. To match Gary's solution, just
drop the -2

Function Fx(n, k)
' n Start Number
' k Number of iterations
'= = = = = = = = = = = = = =
Fx = (2 * k + Sqr(n)) ^ 2
'= = = = = = = = = = = = = =
End Function

Hence:
?fx(3,2)
32.856406460551

As a worksheet function
=POWER(2 * B1 + SQRT(A1),2)

(A1 = Number, B1 = # of Iterations)
--
HTH :)
Dana DeLouis


"Gary''s Student" wrote in message
...
Try this small UDF:

Function eric(v As Variant, n As Integer) As Double
Dim tw As Double
tw = 2
eric = v
For i = 1 To n
eric = (eric ^ 0.5 + tw) ^ tw
Next
End Function

So
=eric(3,2) displays
32.85640646

--
Gary''s Student - gsnu200745


"Eric" wrote:

Does anyone have any suggestions on how to determine the formula for
following series?

The 1 st number is n
Ther 2 nd number is Power(Sqrt(n)+2,2),
The 3 rd number is Power(Sqrt(Power(Sqrt(n)+2,2))+2,2), then substitute
the
previous value into the same formula format.
The 4 th number is Power(Sqrt(Power(Sqrt(Power(Sqrt(n)+2,2))+2,2))+2, 2),
The 5 th number is Power(Sqrt([Previous value])+2,2),

Does anyone have any suggestions on how to determine this repeated
structure
in a formula? therefore, if the any number is given, then I can determine
the
result directly rather than calculate a list of values in order to get
the
result.
Thank in advance for any suggestions
Eric



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Thank everyone for suggestions

Thank everyone for suggestions
Eric

"Dana DeLouis" wrote:

The 1 st number is n


Hi. I had k=1 return the original number. To match Gary's solution, just
drop the -2

Function Fx(n, k)
' n Start Number
' k Number of iterations
'= = = = = = = = = = = = = =
Fx = (2 * k + Sqr(n)) ^ 2
'= = = = = = = = = = = = = =
End Function

Hence:
?fx(3,2)
32.856406460551

As a worksheet function
=POWER(2 * B1 + SQRT(A1),2)

(A1 = Number, B1 = # of Iterations)
--
HTH :)
Dana DeLouis


"Gary''s Student" wrote in message
...
Try this small UDF:

Function eric(v As Variant, n As Integer) As Double
Dim tw As Double
tw = 2
eric = v
For i = 1 To n
eric = (eric ^ 0.5 + tw) ^ tw
Next
End Function

So
=eric(3,2) displays
32.85640646

--
Gary''s Student - gsnu200745


"Eric" wrote:

Does anyone have any suggestions on how to determine the formula for
following series?

The 1 st number is n
Ther 2 nd number is Power(Sqrt(n)+2,2),
The 3 rd number is Power(Sqrt(Power(Sqrt(n)+2,2))+2,2), then substitute
the
previous value into the same formula format.
The 4 th number is Power(Sqrt(Power(Sqrt(Power(Sqrt(n)+2,2))+2,2))+2, 2),
The 5 th number is Power(Sqrt([Previous value])+2,2),

Does anyone have any suggestions on how to determine this repeated
structure
in a formula? therefore, if the any number is given, then I can determine
the
result directly rather than calculate a list of values in order to get
the
result.
Thank in advance for any suggestions
Eric




Reply
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
how do I determine if a cell is used in a formula razorsharp Excel Discussion (Misc queries) 1 December 20th 06 06:53 PM
How can I determine if a cell has a value (#) or a formula (X*Y)? KMH Excel Discussion (Misc queries) 2 December 22nd 05 04:39 PM
Formula to determine row of hi value filtered column rgarber50 Excel Discussion (Misc queries) 0 September 4th 05 10:27 PM
Formula to determine shift Liz Excel Worksheet Functions 4 August 15th 05 06:52 AM
Need a formula to determine the greater of a or b... sonyav Excel Discussion (Misc queries) 2 March 17th 05 08:13 PM


All times are GMT +1. The time now is 12:46 PM.

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"