beephsupreme

palindrome_rules

Aug 24th, 2022
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | Science | 0 0
  1. The palindromes of length 1 are 0,1,…,9.
  2.  
  3. Let 𝑛 be a positive even integer; let 𝑛=2𝑚. Every palindrome of length 𝑛 is of the form
  4. ∑𝑘=0𝑚−1𝑝𝑘(10(𝑛−1)−𝑘+10𝑘)
  5. where 𝑝0,𝑝1,…,𝑝𝑚−1∈{0,1,…,9}, 𝑝0≠0.
  6.  
  7. Let 𝑛 be a positive odd integer, 𝑛≥3; let 𝑛=2𝑚+1. Every palindrome of length 𝑛 is of the form
  8. ∑𝑘=0𝑚−1𝑝𝑘(10(𝑛−1)−𝑘+10𝑘)+𝑝𝑚10𝑚
  9. where 𝑝0,𝑝1,…,𝑝𝑚∈{0,1,…,9}, 𝑝0≠0.
Advertisement
Add Comment
Please, Sign In to add comment