Find a Shorter Solution for f(7) with Given Constraints | Elementary Question

  • Thread starter icystrike
  • Start date
  • Tags
    Elementary
In summary, the conversation is about finding a shorter solution for a given question involving a function with nonnegative integer coefficients. The answer is 512 and one approach is to use the binomial expansion.
  • #1
icystrike
445
1

Homework Statement


I've posted it many months ago.. now i manage to get the answer but I am wondering if anyone has a shorter solution?

The question goes like this(without a single omission):

Let f(x)=[itex]a_0+a_1x+a_2x^2+...+a_nx^n[/itex] ,where [itex]a_0,a_1,a_2,...,a_n[/itex]
are nonnegative integers. If f(1)=8 and f(35)=[itex]6^6[/itex] , find f(7).

Answer is 512.

Homework Equations

The Attempt at a Solution



Given [tex]a_{i}[/tex] is nonnegative , it can be 0 ,1 ,2 ,3 , ... , 7

Since [tex]35^{4}>6^{6}[/tex],
[tex]a_{4},a_{5},a_{6}... = 0[/tex]
[tex]f(35)=6^{6} \equiv1 mod(35)[/tex] by fermat's little theorem.
[tex]a_0 =1[/tex]
[tex]a_3=0 or 1 \because 2\times35^3 > 6^6[/tex]
therefore ,
[tex]a_1 + a_2 = 7 (rej \because a_2 > 38)[/tex]
or
[tex]a_1 + a_2 =6[/tex]

Hence, we can have a two by two simultaneous eqn:
[tex]a_1 + a_2 = 6[/tex]
[tex]35a_1 + 35^2 a_2 =3780[/tex]
[tex]a_1=3 ,a_2=3[/tex]

therefore , [tex]f(7)=1+3\times7+3\times7^{2}+7^{3}=512[/tex]
 
Last edited:
Physics news on Phys.org
  • #2
This is a fairly simple question. Another way to do this:

f(x) looks like the binomial expansion of [tex]f(x)=(1+x)^n[/tex]
In this case, since it is given that f(1)=8, n=3.

Putting x=35 confirms this as we get [tex]f(35)=(1+35)^3[/tex].

Thus you can easily get f(7)=512.
 
  • #3
chaoseverlasting said:
This is a fairly simple question. Another way to do this:

f(x) looks like the binomial expansion of [tex]f(x)=(1+x)^n[/tex]
In this case, since it is given that f(1)=8, n=3.

Putting x=35 confirms this as we get [tex]f(35)=(1+35)^3[/tex].

Thus you can easily get f(7)=512.
But how you manage to find out that f(x) is actually the binomial expansion from the given information...
 
  • #4
Because of the increasing powers of x. It starts with x^0 and ends with x^n. It resembles a binomial expansion. Since f(1) was a power of 2, that furthur strengthened the assumption. Thats because the sum of binomial coefficients is 2^n, so it seemed to fit. From there on, I just checked if the given expansion fit the data and from there, the answer.
 

1. What is the purpose of finding a shorter solution for f(7)?

Finding a shorter solution for f(7) allows us to simplify and streamline the function, making it easier to understand and work with. It can also help us save time and resources when computing or implementing the function.

2. What are the given constraints for finding a shorter solution for f(7)?

The given constraints refer to any limitations or conditions that must be followed when finding a shorter solution for f(7). These could include restrictions on the number of operations, use of specific mathematical concepts, or any other guidelines provided.

3. How can we find a shorter solution for f(7) with the given constraints?

To find a shorter solution for f(7), we can start by analyzing the function and identifying any redundant or unnecessary components. We can then use mathematical strategies such as simplification, substitution, or factoring to reduce the overall complexity of the function while still satisfying the given constraints.

4. What are some common techniques for finding a shorter solution for f(7)?

Some common techniques for finding a shorter solution for f(7) include using algebraic properties, applying the laws of exponents, using the distributive property, and simplifying fractions. We can also use concepts such as symmetry, inverse operations, and the commutative and associative properties to help us find a more concise solution.

5. What are the benefits of finding a shorter solution for f(7)?

Finding a shorter solution for f(7) offers several benefits, including improved efficiency, increased understanding of the function, and easier implementation in practical applications. It can also help us identify patterns and relationships within the function and make it more adaptable to changes or variations in the constraints.

Similar threads

Replies
1
Views
142
  • Introductory Physics Homework Help
Replies
3
Views
866
  • Calculus and Beyond Homework Help
Replies
5
Views
290
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
Replies
3
Views
2K
Replies
13
Views
2K
  • Calculus and Beyond Homework Help
Replies
9
Views
760
  • Advanced Physics Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Differential Equations
Replies
1
Views
1K
Back
Top