Solving Discrete Math: Integer & Algorithm Homework

Click For Summary
SUMMARY

The discussion centers on solving discrete mathematics problems related to integer sequences and their properties in various bases. Specifically, it addresses the concept of B-palindromic integers, defined by their base B expansion fB(n), and the conditions under which such integers exist. The participants explore proofs regarding the existence of B-palindromic integers for any integer n > 0, the relationship between B-compliant sequences and their base L expansions, and the conditions for L-palindromic sums. Key definitions and equations are provided to clarify the mathematical framework.

PREREQUISITES
  • Understanding of base B expansion in number theory
  • Familiarity with palindromic integers and their properties
  • Knowledge of B-compliant sequences and their definitions
  • Basic principles of discrete mathematics and proof techniques
NEXT STEPS
  • Study the properties of palindromic numbers in different bases
  • Learn about B-compliant sequences and their applications in number theory
  • Investigate proof techniques in discrete mathematics, particularly for integer sequences
  • Explore the implications of base conversions on integer properties
USEFUL FOR

Students and educators in mathematics, particularly those focused on discrete mathematics, number theory, and algorithm design. This discussion is beneficial for anyone tackling problems related to integer sequences and their properties in various bases.

Banshi
Messages
1
Reaction score
0
Hi guys! I got really stuck with a Discrete Mathematics homework in Integers and Algorithms.
I know it is not very clear due to lack of symbols. If anyone didn't understand some part of the exercise I would like to clarify it.

The exercise is the following :

Homework Statement


Define for B, an integer > 1, the base B expansion fB(n) of n, an integer > 0, as the sequence of integers fB(n) = (n0, n1, . . . , n(k)) satisfying 0 <= n(i) < B for 0 <= i <= k, n(k) != 0, and n = Ʃ(n(i)Bpower(i)), i=0 to k.
An integer n > 0 is called B-palindromic if its base B expansion fB(n) = (n0, n1, . . . , n(k)) satisfies n(i) = n(k−i) for 0 <= i <= k (i.e. n(i) means n index i).

a. Prove or disprove the following statement:
Ʉ n > 0, Ǝ B > 1 such that n is B-palindromic.

Let B > 1 be fixed. A sequence of integers (n0, n1, . . . , n(k)) is B-compliant if 0 <= n(i) < B for 0 <= i <= k and n(k) != 0. For any L >= B and any B-compliant integer sequence N = (n0, n1, . . . , n(k)), the integer N(L) (i.e. N index L) is defined as N(L) = Ʃ(n(i)Lpower(i)), i=0 to k.
And the integer Ӣ(L) is defined as Ӣ(L) = Ʃ(n(k-i)Lpower(i)), i=0 to k. Here, Ӣ(L) stands for negation of N, index L.

b. Prove that for any L >= B and any B-compliant sequence N = (n0, n1, . . . , n(k))
it is the case that fL(N(L)) = (n0, n1, . . . , n(k)).

c. Find the smallest L >= B such that N(L) + Ӣ(L) is L-palindromic for all B-compliant integer sequences N.

Homework Equations


- fB(n) = (n0, n1, . . . , n(k)) with 0 <= n(i) < B for 0 <= i <= k, n(k) != 0, and n = Ʃ(n(i)Bpower(i)), i=0 to k.

- An integer n > 0 is called B-palindromic if its base B expansion fB(n) = (n0, n1, . . . , n(k)) satisfies n(i) = n(k−i) for 0 <= i <= k.

- (n0, n1, . . . , n(k)) is B-compliant if 0 <= n(i) < B for 0 <= i <= k and n(k) != 0.

- For any L >= B and any B-compliant integer sequence N = (n0, n1, . . . , n(k)), the integer N(L) (i.e. N index L) is defined as N(L) = Ʃ(n(i)Lpower(i)), i=0 to k.

- Ӣ(L) = Ʃ(n(k-i)Lpower(i)), i=0 to k.

The Attempt at a Solution



I don't even know how to start, if anyone could help me with this it would be awesome.

Thanks Guys.
 
Physics news on Phys.org
I've attempted to rewrite your problem by condensing it and using LaTex. Perhaps someone who can do number theory will be happier with this version.

1. The problem statement

a. Prove or disprove the following statement: For each integer [tex]n > 0[/tex] there exists a base [tex]B > 1[/tex] so that [tex]n[/tex] is palandromic when written in base [tex]B[/tex]..

b. Prove that for any [tex]L \geq B[/tex] and any [tex]B-[/tex]compliant sequence [tex]\{N\} = \{n_0, n_1, . . . , n_k) \}[/tex] it is the case that the expansion of [tex]N[/tex] to the base [tex]L[/tex], [tex]\{f_L(N(L))\} = \{n_0, n_1, . . . , n_k\}[/tex].

c. Find the smallest [tex]L \geq B[/tex] such that [tex]N_L + \tilde{N}_L[/tex] is [tex]L-[/tex] palandromic for all [tex]B-[/tex]compliant integer sequences [tex]\{N\}[/tex]


2. Relevant definitions

Define the base [tex]B[/tex] expansion [tex]f_B(n)[/tex] of an integer [tex]n > 0[/tex] to be the sequence of integers [tex]\{f_B(n)\} = \{n_0, n_1,...,n_k\}[/tex] satisfying [tex]0 \leq n_i < B[/tex] for [tex]0 \leq i \leq k[/tex] with [tex]n_k \neq 0[/tex] and [tex]n = \sum_{i=0}^k n_i B^i[/tex]

An integer [tex]n > 0[/tex] is palindromic when written in base [tex]B[/tex] means that [tex]\{f_B(n)\} = \{n_0, n_1, . . . , n_k \}[/tex] satisfies [tex]n_i = n_{k-i}[/tex] for [tex]0 \leq i \leq k[/tex]

Let [tex]B > 1[/tex] be fixed. A sequence of integers [tex]\{n_0, n_1, . . . , n_k\}[/tex] is [tex]B[/tex]-compliant if [tex]0 \leq n_i < B[/tex] for [tex]0 <= i <= k[/tex] and [tex]n_k \neq 0[/tex].

For any [tex]L \geq B[/tex] and any [tex]B[/tex]-compliant integer sequence [tex]N = \{n_0, n_1, . . . , n_k\}[/tex], the integer [tex]N(L)[/tex] is defined as [tex]N(L) = \sum_{i=0}^ k n_i L^i[/tex].
And the integer [tex]\tilde{N}(L)[/tex] is defined as
[tex]\tilde{N}(L) = \sum_{i=0}^k n(k-i)L^i[/tex].


If you use LaTex, be advised that there is a bug in the way LaTex is cached on this forum. When composing a post, you must use the "preview" feature of the editor and, after the page appears, you must use the "reload" feature of your browser to display the page again. A similar procedure must be used when you edit one of your posts. Before pages are reloaded, the LaTex may look nonsensical or not reflect your edits.
 
I have these two questions in discrete mathematics and I need your help to answer it….
Proof that ∀x⇁p(x)≡⇁∃x p(x)
And
Proof that ⇁∀xp(x)≡∃x⇁ p(x)
Let R be the relation on the set {1,2,3,4,5} containing the order pairs(1,1) ,(1,2) (1,3) ,(2,3) (2,4) ,(3,1) (3,4) ,(3,5) ,(4,2) (4,5) ,(5,1) (5,2) ,and(5,4),Find
R^3
R^4
R^5
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K