Formulas for various domination numbers of products of paths and - - PowerPoint PPT Presentation

formulas for various domination numbers of products of
SMART_READER_LITE
LIVE PREVIEW

Formulas for various domination numbers of products of paths and - - PowerPoint PPT Presentation

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks Formulas for various domination numbers of products of paths and cycles Janez c 1 Zerovnik 1 , 2 Polona Pavli 1 IMFM, Ljubljana, Slovenia 2 FME,


slide-1
SLIDE 1

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Formulas for various domination numbers of products of paths and cycles

Polona Pavliˇ c1 Janez ˇ Zerovnik1,2

1IMFM, Ljubljana, Slovenia 2FME, University of Ljubljana, Slovenia

Ljubljana-Leoben 2012

slide-2
SLIDE 2

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Polygraphs

  • Definition. A polygraph Ωn = Ωn(G1, . . . Gn; X1, . . . Xn) over

mutually disjoint monographs G1, . . . , Gn has the vertex set V (Ωn) = V (G1) ∪ . . . ∪ V (Gn), and the edge set E(Ωn) = E(G1) ∪ X1 ∪ . . . ∪ E(Gn) ∪ Xn, where Xi ⊆ V (Gi) × V (Gi+1) for i = 1, . . . , n and Gn+1 ∼ = G1.

slide-3
SLIDE 3

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

G1 G2 G3 G4 G5

slide-4
SLIDE 4

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

G1 G2 G3 G4 G5 X1 X2 X3 X4 X5

slide-5
SLIDE 5

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

G1 G2 G3 G4 G5 X1 X2 X3 X4 X5 Di, i = 1, . . . , 5

slide-6
SLIDE 6

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

G1 G2 G3 G4 G5 X1 X2 X3 X4 X5 Di, i = 1, . . . , 5 Ri, i = 1, . . . , 5

slide-7
SLIDE 7

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Rotagraphs and fasciagraphs

slide-8
SLIDE 8

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Rotagraphs and fasciagraphs

slide-9
SLIDE 9

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Rotagraphs and fasciagraphs

slide-10
SLIDE 10

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Rotagraphs and fasciagraphs

slide-11
SLIDE 11

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

P12P5

slide-12
SLIDE 12

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

P12P5 C12P5

slide-13
SLIDE 13

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

P12 ⊠ P5 P12 × P5

slide-14
SLIDE 14

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G).

slide-15
SLIDE 15

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set

slide-16
SLIDE 16

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number;

slide-17
SLIDE 17

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number; N (D) = V

slide-18
SLIDE 18

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number; N (D) = V − → the total domination number;

slide-19
SLIDE 19

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number; N (D) = V − → the total domination number; For every u, v ∈ D, N [u] ∩ N [v] = ∅

slide-20
SLIDE 20

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number; N (D) = V − → the total domination number; For every u, v ∈ D, N [u] ∩ N [v] = ∅ − → the perfect domination number;

slide-21
SLIDE 21

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number; N (D) = V − → the total domination number; For every u, v ∈ D, N [u] ∩ N [v] = ∅ − → the perfect domination number; Generalizations: the k-domination number;

slide-22
SLIDE 22

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number; N (D) = V − → the total domination number; For every u, v ∈ D, N [u] ∩ N [v] = ∅ − → the perfect domination number; Generalizations: the k-domination number; the Roman domination number;

slide-23
SLIDE 23

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number; N (D) = V − → the total domination number; For every u, v ∈ D, N [u] ∩ N [v] = ∅ − → the perfect domination number; Generalizations: the k-domination number; the Roman domination number; the k-Roman domination number;

slide-24
SLIDE 24

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number and its variations

  • Definition. A set D ⊆ V of a graph G = (V , E) is a dominating set,

if N [D] = V . The size of the smallest dominating set of a graph is the domination number, γ(G). D is an independent set − → the independent domination number; N (D) = V − → the total domination number; For every u, v ∈ D, N [u] ∩ N [v] = ∅ − → the perfect domination number; Generalizations: the k-domination number; the Roman domination number; the k-Roman domination number; the rainbow domination number.

slide-25
SLIDE 25

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Complexity results

  • Theorem. (Johnson, 1979)

DOMINATING SET is NP-complete.

  • Proof. Reduction from 3-SAT.
slide-26
SLIDE 26

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Complexity results

  • Theorem. (Johnson, 1979)

DOMINATING SET is NP-complete.

  • Proof. Reduction from 3-SAT.

Still NP-complete for bipartite graphs (Chang et al., 1984), chordal graphs (Booth and Johnson, 1985),...

slide-27
SLIDE 27

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Complexity results

  • Theorem. (Johnson, 1979)

DOMINATING SET is NP-complete.

  • Proof. Reduction from 3-SAT.

Still NP-complete for bipartite graphs (Chang et al., 1984), chordal graphs (Booth and Johnson, 1985),...

  • ther domination types.
slide-28
SLIDE 28

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Path algebra

  • Definition. A semiring P = (P, ⊕, ◦, e⊕, e◦) is a set P on which two

binary operations, ⊕ and ◦ are defined such that:

1 (P, ⊕) is a commutative monoid with e⊕ as a unit; 2 (P, ◦) is a monoid with e◦ as a unit; 3 ◦ is left– and right–distributive over ⊕; 4 for every x ∈ P, x ◦ e⊕ = e⊕ = e⊕ ◦ x

An idempotent (x ⊕ x = x for all x ∈ P) semiring is called a path algebra.

slide-29
SLIDE 29

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Path algebra

  • Definition. A semiring P = (P, ⊕, ◦, e⊕, e◦) is a set P on which two

binary operations, ⊕ and ◦ are defined such that:

1 (P, ⊕) is a commutative monoid with e⊕ as a unit; 2 (P, ◦) is a monoid with e◦ as a unit; 3 ◦ is left– and right–distributive over ⊕; 4 for every x ∈ P, x ◦ e⊕ = e⊕ = e⊕ ◦ x

An idempotent (x ⊕ x = x for all x ∈ P) semiring is called a path algebra.

slide-30
SLIDE 30

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Path algebra

  • Definition. A semiring P = (P, ⊕, ◦, e⊕, e◦) is a set P on which two

binary operations, ⊕ and ◦ are defined such that:

1 (P, ⊕) is a commutative monoid with e⊕ as a unit; 2 (P, ◦) is a monoid with e◦ as a unit; 3 ◦ is left– and right–distributive over ⊕; 4 for every x ∈ P, x ◦ e⊕ = e⊕ = e⊕ ◦ x

An idempotent (x ⊕ x = x for all x ∈ P) semiring is called a path algebra.

slide-31
SLIDE 31

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Examples of path algebras: P1 = ({0, 1} , max, min, 0, 1) P2 = (N0 ∪ {−∞}, max, +, −∞, 0) P3 = (N0 ∪ {∞}, min, +, ∞, 0)

slide-32
SLIDE 32

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Examples of path algebras: P1 = ({0, 1} , max, min, 0, 1) P2 = (N0 ∪ {−∞}, max, +, −∞, 0) P3 = (N0 ∪ {∞}, min, +, ∞, 0) ”tropical semiring”

slide-33
SLIDE 33

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Matrices with elements of a path algebra: Let P = (P, ⊕, ◦, e⊕, e◦) be a path algebra and let Mn(P) be the set

  • f all n × n matrices over P. Let A, B ∈ Mn(P) and define operations

⊕ and ◦ in the usual way: (A ⊕ B)ij = Aij ⊕ Bij, (A ◦ B)ij =

n

  • k=1

Aik ◦ Bkj. Observation: Mn(P) equipped with above operations is a path algebra with the zero and the unit matrix as units of semiring.

slide-34
SLIDE 34

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Matrices with elements of a path algebra: Let P = (P, ⊕, ◦, e⊕, e◦) be a path algebra and let Mn(P) be the set

  • f all n × n matrices over P. Let A, B ∈ Mn(P) and define operations

⊕ and ◦ in the usual way: (A ⊕ B)ij = Aij ⊕ Bij, (A ◦ B)ij =

n

  • k=1

Aik ◦ Bkj. Observation: Mn(P) equipped with above operations is a path algebra with the zero and the unit matrix as units of semiring.

slide-35
SLIDE 35

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Example: P = (N0 ∪ {∞}, min, +, ∞, 0). The zero matrix:    ∞ ∞ . . . ∞ . . . . . . ... . . . ∞ ∞ . . . ∞    The unit matrix:      ∞ . . . ∞ ∞ . . . ∞ . . . . . . ... . . . ∞ ∞ . . .      (A ⊕ B)ij = min {Aij, Bij}, (A ◦ B)ij = mink=1,...,n {Aik + Bkj}

slide-36
SLIDE 36

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Path algebras and digraphs

Let P = (P, ⊕, ◦, e⊕, e◦) be a path algebra and let G be a labeled digraph, that is a digraph together with a labeling function ℓ which assigns to every arc of G an element of P: ℓ : E(G) − → P. Let V (G) = {v1, v2, . . . , vn} and define the following matrix: (A (G))ij =

  • ℓ (vi, vj) ;

if (vi, vj) is an arc of G e⊕;

  • therwise
slide-37
SLIDE 37

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The labeling ℓ of G can be extended to walks: for a walk Q = (vi0, vi1)(vi1, vi2) . . . (vik−1, vik) of G let ℓ(Q) = ℓ (vi0, vi1) ◦ ℓ (vi1, vi2) ◦ . . . ◦ ℓ

  • vik−1, vik
  • .

Observation: Let Sk

ij be the set of all walks of order k from vi to vj

in G. Then

  • A(G)k

ij =

  • Q∈Sk

ij

ℓ(Q).

slide-38
SLIDE 38

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The labeling ℓ of G can be extended to walks: for a walk Q = (vi0, vi1)(vi1, vi2) . . . (vik−1, vik) of G let ℓ(Q) = ℓ (vi0, vi1) ◦ ℓ (vi1, vi2) ◦ . . . ◦ ℓ

  • vik−1, vik
  • .

Observation: Let Sk

ij be the set of all walks of order k from vi to vj

in G. Then

  • A(G)k

ij =

  • Q∈Sk

ij

ℓ(Q).

slide-39
SLIDE 39

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Algorithm, different graph invariants

O(log n) algorithm (Klavˇ zar and ˇ Zerovnik, 1996) Let ωn(G; X) be a rotagraph and ψn(G; X) a fasciagraph. Define a labeled digraph G = G(G; X): V (G) . . . subsets of D ⊔ R; E(G) . . . between vertices that are not in ”conflict”. G1 G2 Vi D1 R1

slide-40
SLIDE 40

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Algorithm, different graph invariants

O(log n) algorithm (Klavˇ zar and ˇ Zerovnik 1996) Let ωn(G; X) be a rotagraph and ψn(G; X) a fasciagraph. Define a labeled digraph G = G(G; X): V (G) . . . subsets of R ⊔ D; E(G) . . . between vertices that are not in ”conflict”.

1 Select appropriate path algebra and define labeling:

ℓ : E(G) − → P.

slide-41
SLIDE 41

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Algorithm, different graph invariants

O(log n) algorithm (Klavˇ zar and ˇ Zerovnik, 1996) Let ωn(G; X) be a rotagraph and ψn(G; X) a fasciagraph. Define a labeled digraph G = G(G; X): V (G) . . . subsets of R ⊔ D; E(G) . . . between vertices that are not in ”conflict”.

1 Select appropriate path algebra and define labeling:

ℓ : E(G) − → P.

2 Form A (G) and in M(P) calculate A (G)n.

slide-42
SLIDE 42

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Algorithm, different graph invariants

O(log n) algorithm (Klavˇ zar and ˇ Zerovnik, 1996) Let ωn(G; X) be a rotagraph and ψn(G; X) a fasciagraph. Define a labeled digraph G = G(G; X): V (G) . . . subsets of R ⊔ D; E(G) . . . between vertices that are not in ”conflict”.

1 Select appropriate path algebra and define labeling:

ℓ : E(G) − → P.

2 Form A (G) and in M(P) calculate A (G)n. 3 Among admissable coefficients of A (G)n select one that

  • ptimizes the corresponding goal function.
slide-43
SLIDE 43

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Algorithm, different graph invariants

O(log n) algorithm (Klavˇ zar and ˇ Zerovnik, 1996) Let ωn(G; X) be a rotagraph and ψn(G; X) a fasciagraph. Define a labeled digraph G = G(G; X): V (G) . . . subsets of R ⊔ D; E(G) . . . between vertices that are not in ”conflict”.

1 Select appropriate path algebra and define labeling:

ℓ : E(G) − → P.

2 Form A (G) and in M(P) calculate A (G)n. ←

− O(log n)

3 Among admissable coefficients of A (G)n select one that

  • ptimizes the corresponding goal function.
slide-44
SLIDE 44

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number: (Klavˇ zar, ˇ Zerovnik,1996)

1 G = G(G; X):

V (G) = {Vi | Vi ⊆ R ⊔ D};

2 P = (N0 ∪ {∞}, min, +, ∞, 0). 3 ℓ(Vi, Vj) = |Vi ∩ R| + γi,j(G; X) + |D ∩ Vj| − |Vi ∩ R ∩ D ∩ Vj| .

G1 G2 G3 Vi Vj D1 D2 R1 R2

slide-45
SLIDE 45

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number: (Klavˇ zar, ˇ Zerovnik,1996)

1 G = G(G; X):

V (G) = {Vi | Vi ⊆ R ⊔ D};

2 P = (N0 ∪ {∞}, min, +, ∞, 0). 3 ℓ(Vi, Vj) = |Vi ∩ R| + γi,j(G; X) + |D ∩ Vj| − |Vi ∩ R ∩ D ∩ Vj| .

G1 G2 G3 Vi Vj D1 D2 R1 R2

slide-46
SLIDE 46

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

The domination number: (Klavˇ zar, ˇ Zerovnik,1996)

1 G = G(G; X):

V (G) = {Vi | Vi ⊆ R ⊔ D};

2 P = (N0 ∪ {∞}, min, +, ∞, 0). 3 ℓ(Vi, Vj) = |Vi ∩ R| + γi,j(G; X) + |D ∩ Vj| − |Vi ∩ R ∩ D ∩ Vj| .

Then γ (ψn(G; X)) = (A (G)n)00 and γ (ωn(G; X)) = min

i

(A (G)n)ii .

slide-47
SLIDE 47

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Generalization

Time complexity;

slide-48
SLIDE 48

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Generalization

Time complexity; Space complexity;

slide-49
SLIDE 49

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Generalization

Time complexity; Space complexity; Other domination - type invariants;

slide-50
SLIDE 50

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Generalization

Time complexity; Space complexity; Other domination - type invariants; Implementation to get some closed expressions.

slide-51
SLIDE 51

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Calculating A (G)n in O(1)

Let An denote A (G)n and A ∈ Mn(P), where P = (N0 ∪ {∞} , min, +, ∞, 0). Lemma (-, ˇ Zerovnik, 2012) Let N = |V (G(G; X))|, K = |V (G)|. Then there is an index q such that Aq = Ap + C for some index p < q and some constant matrix C = [c]ij. Let P = q − p. Then for every r ≥ p and every s ≥ 0 we have Ar+sP = Ar + sC .

slide-52
SLIDE 52

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Fasciagraphs

γ (ψn(G; X)) = (A (G)n)00 An

0i = min k

  • An−1

0k

+ Aki

  • .

Lemma (-, ˇ Zerovnik, 2012) Assume that the j–th row of An+P and An differ for a constant, an+P

ji

= an

ji + C for all i. Then mini an+P ji

= mini an

ji + C.

slide-53
SLIDE 53

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Fasciagraphs

γ (ψn(G; X)) = (A (G)n)00 An

0i = min k

  • An−1

0k

+ Aki

  • .

Lemma (-, ˇ Zerovnik, 2012) Assume that the j–th row of An+P and An differ for a constant, an+P

ji

= an

ji + C for all i. Then mini an+P ji

= mini an

ji + C.

slide-54
SLIDE 54

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Fasciagraphs

γ (ψn(G; X)) = (A (G)n)00 An

0i = min k

  • An−1

0k

+ Aki

  • .

Lemma (-, ˇ Zerovnik, 2012) Assume that the j–th row of An+P and An differ for a constant, an+P

ji

= an

ji + C for all i. Then mini an+P ji

= mini an

ji + C.

slide-55
SLIDE 55

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Rotagraphs

Lemma (-, ˇ Zerovnik, 2012) Let Aq = Ap + C and P = q − p. Then for every t ∈ 0, 1, . . . , P − 1 there is a constant Ct such that for all n ≥ p with t ≡ (n − p) (mod P) we have γ(ψn(G; X)) − γ(ωn(G; X)) = Ct.

slide-56
SLIDE 56

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks

Results and remarks

Theorem (-, ˇ Zerovnik, 2012) Domination numbers of fasciagraphs and rotagraphs can be computed in constant time, i.e. independently of the size of a monograph G.

slide-57
SLIDE 57

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks k γ(PnCk) 3

  • 3n

4

  • + 1;

if n ≡ 0 (mod 4)

  • 3n

4

  • ;
  • therwise

4 n 5 3; if n = 2 4; if n = 3 n + 2;

  • therwise

6

  • 4n

3

  • ;

if n ≡ 1 (mod 3)

  • 4n

3

  • + 1;
  • therwise

7

  • 3n

2

  • + 1;

if n ≡ 1 (mod 2)

  • 3n

2

  • + 2;
  • therwise
slide-58
SLIDE 58

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks k γ(PnCk) 8 4; if n = 2 6; if n = 3 8; if n = 4

  • 9n

5

  • + 1;

if n ≡ 5 (mod 10)

  • 9n

5

  • + 2;
  • therwise

9 5; if n = 2 7; if n = 3 10 if n = 4 2n + 2;

  • therwise

10 2n + 2; if n ≤ 5 2n + 3; if 6 ≤ n ≤ 9 2n + 4

  • therwise

11

  • 19n

8

  • + 1;

if n ∈ {1, 2, 4, 6} or n ≡ 3 (mod 8)

  • 19n

8

  • + 2;
  • therwise
slide-59
SLIDE 59

Polygraphs Domination and its variations Path algebra The algorithm Results and remarks k γ(CnPk) γ(CnCk) 2

  • n

2

  • + 1;

if n ≡ 2 (mod 4)

  • n

2

  • ;
  • therwise

3

  • 3n

4

  • 3n

4

  • 4

n + 1; if n ∈ {5, 9} n;

  • therwise

n 5 4; if n = 3

  • 6n

5

  • + 1;

if n ≡ 3, 5, 9 (mod 10)

  • 6n

5

  • ;
  • therwise

n; if n ≡ 0 (mod 5) n + 2; if n ≡ 3 (mod 5) n + 1;

  • therwise

6 9; if n = 6

  • 10n

7

  • + 1;

n ≡ 2, 6, 7, 9 13 (mod 14)

  • 10n

7

  • ;
  • therwise
  • 4n

3

  • + 1;

n ≡ 2, 3, 8, 9 (mod 18) 11, 14, 15, 17 (mod 18)

  • 4n

3

  • ;
  • therwise

7 6; if n = 3 16; if n = 9 36; if n = 21

  • 5n

3

  • ;
  • therwise
  • 3n

2

  • ;

n ≡ 0, 5, 9 (mod 14)

  • 3n

2

  • + 2;

n ≡ 2, 8, 12 (mod 14)

  • 3n

2

  • + 1;
  • therwise