Can You Derive a Mathematical Formula from This Data Pattern?

  • Context: Undergrad 
  • Thread starter Thread starter rishid
  • Start date Start date
  • Tags Tags
    deriving Formula
Click For Summary

Discussion Overview

The discussion revolves around analyzing a data pattern to derive a mathematical formula that relates input values to output values. The focus is on identifying the underlying structure of the data presented in a tabular format.

Discussion Character

  • Exploratory
  • Mathematical reasoning

Main Points Raised

  • RishiD suggests analyzing the data pattern to create a formula, noting that the output seems to reset to one at powers of two.
  • Warren observes that the output appears to follow the sequence of odd integers, resetting to one at powers of two.
  • Another participant proposes a method of organizing the data into rows to help visualize the pattern, expressing uncertainty about the intended outcome.
  • RichJ presents a specific formula for calculating the output based on the input integer, detailing the components of the formula and providing a table of calculations to illustrate the results.

Areas of Agreement / Disagreement

Participants express various interpretations of the data pattern, with no consensus on a single formula or method. Multiple viewpoints on how to approach the problem remain present.

Contextual Notes

Some participants' suggestions depend on assumptions about the data structure and the intended outcome, which are not explicitly defined. The formula provided by RichJ includes mathematical operations that may require further clarification or validation.

Who May Find This Useful

This discussion may be useful for individuals interested in mathematical pattern recognition, data analysis, and formula derivation in a mathematical context.

rishid
Messages
9
Reaction score
0
Need to analyze the pattern and create a formula if possible out of the data below. Inputting the first column and outputting the second.
1 1
2 1
3 3
4 1
5 3
6 5
7 7
8 1
9 3
10 5
11 7
12 9
13 11
14 13
15 15
16 1

Only thing I got that is on powers of 2, it should be 1.

If you got any ideas, throw them at me.

Thanks,

RishiD
 
Mathematics news on Phys.org
Looks like it's just going through the odd integers, resetting to one on powers of two.

- Warren
 
Try writing out i rows, starting a new row each time you come across 1. the 'answer' should jump out at you (i'm not sure yo'ure even looking for an answer, to be honest, and what "should be 1").
 
Hello Rishid,
I have the solution to your problem you posted on Oct. 25, 2004.

The formula is: x = 2 i + 1 - (2 ^ (int(log2(i)) + 1)

where i is the integer and x is the result,
log2(n) is the log (base 2) of n,
and int(n) is the integer value of n.

The table illustrates the calcs. (I used periods to line up the values because the message formatting automatically removes extraneous spaces. Also I was forced to use variables to represent each step for the same formatting reason). Specifically,

a = 2i + 1
b= int(log2(i))
c= int(log2(i)) + 1
d = 2^(int(log2(i))+1)
and finally the result you're trying to generate: x = a - d

i...a...b...c...d...x

1...3...0...1...2...1
2...5...1...2...4...1
3...7...1...2...4...3
4...9...2...3...8...1
5...11...2...3...8...3
6...13...2...3...8...5
7...15...2...3...8...7
...
16...33...4...5...32...1

I hope this helps.
RichJ
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 68 ·
3
Replies
68
Views
13K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K