Forgot password?
 Register account
View 1228|Reply 0

[数论] 二进制数码和

[Copy link]

3158

Threads

7933

Posts

45

Reputation

Show all posts

hbghlyj posted 2020-1-26 18:52 |Read mode
Last edited by hbghlyj 2020-1-26 20:54$f:\mathbf N→\mathbf N,f(2n)=f(n),f(2n+1)=f(2n)+1,$最多有多少个n($1\le n\le 2020$)使$f(n)=n$
我的思路:设s(n)为n的二进制表示的数字和,即数字1的个数,归纳易证f(n)=f(0)+s(n),相当于以下问题
任意正整数m,满足$n-s(n)=m$的n的个数N的最大值为?
$2020=(11111100100)_2$

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | 快速注册

$\LaTeX$ formula tutorial

Mobile version

2025-6-8 06:57 GMT+8

Powered by Discuz!

Processed in 0.018323 second(s), 22 queries

× Quick Reply To Top Edit