找回密码
 欢迎注册
楼主: 王守恩

[原创] 数字串的通项公式

 火... [复制链接]
 楼主| 发表于 2024-5-29 19:04:56 | 显示全部楼层
  1. Table[Solve[{n*x*y*z == (x + n) (y + n) (z + n), 0 < x ≤ y≤  z}, {x, y, z}, Integers], {n, 2, 20}]
复制代码

n=2, 有20个解。
n=3, 有17个解。
n=4, 有15个解。
n=5, 有08个解。
n=6, 有18个解。
n=7, 有04个解。
n=8, 有11个解。

得到这样一串数:  20, 17, 15, 8, 18, 4, 11, 5, 13, 1, 22, 2, 10, 13, 4, 1, 15, 1, 15, ......
(1), 什么规律?有最大的 n 吗?
(2), 就想要  20, 17, 15, 8, 18, 4, 11, 5, 13, 1, 22, ...,如何编排?
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2024-5-30 10:01:33 | 显示全部楼层
王守恩 发表于 2024-5-29 19:04
n=2, 有20个解。
n=3, 有17个解。
n=4, 有15个解。
  1. Table[Length@Solve[{n*x*y*z==(x+n) (y+n) (z+n),0<x<=y<=z},{x,y,z},Integers],{n,2,30}]
复制代码


{20,17,15,8,18,4,11,5,13,1,22,2,10,13,4,1,15,1,15,9,6,0,17,3,0,1,8,0,24}
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2024-5-30 12:06:39 | 显示全部楼层
n=1-200的解的情况:{0,20,17,15,8,18,4,11,5,13,1,22,2,10,13,4,1,15,1,15,9,6,0,17,3,0,1,8,0,24,0,1,6,2,6,13,0,0,4,11,0,21,0,4,10,0,0,7,0,3,2,4,0,4,1,5,0,0,0,29,0,0,6,0,5,5,0,3,2,16,0,10,0,0,3,2,2,9,0,3,0,0,0,16,1,0,0,7,0,10,1,1,1,0,2,2,0,3,3,3,0,1,0,5,10,0,0,6,0,9,0,4,0,7,1,0,3,0,2,20,0,0,1,0,0,13,0,0,0,10,0,9,2,0,5,4,0,2,0,24,0,0,0,6,2,0,0,0,0,7,0,4,3,4,0,10,0,0,0,2,0,0,0,0,6,0,0,15,0,8,0,1,0,1,4,3,0,0,0,17,0,1,0,3,0,1,0,0,4,1,0,1,0,0,8,0,0,5,0,3}

n 以下数字时无解:{1,23,26,29,31,37,38,41,43,46,47,49,53,57,58,59,61,62,64,67,71,73,74,79,81,82,83,86,87,89,94,97,101,103,106,107,109,111,113,116,118,121,122,124,125,127,128,129,131,134,137,139,141,142,143,146,147,148,149,151,155,157,158,159,161,162,163,164,166,167,169,171,173,177,178,179,181,183,185,187,188,191,193,194,196,197,199}
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2024-5-31 11:16:41 | 显示全部楼层
northwolves 发表于 2024-5-30 12:06
n=1-200的解的情况:{0,20,17,15,8,18,4,11,5,13,1,22,2,10,13,4,1,15,1,15,9,6,0,17,3,0,1,8,0,24,0,1,6,2 ...

n=420时有30个解,还有>30个解的n吗?
感觉n从某个数开始都是无解的?
这算法还能提速吗?
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2024-6-1 08:37:07 | 显示全部楼层
A062714
a(1)=1: 1,
a(2)=3: 12,1,
a(3)=7: 123,1,2,1,3,
a(4)=12: 1234,1,23,1,42,1,3,
a(5)=19: 12345,1,234,1,523,1,452,1,3,
a(6)=28: 123456,1,2345,1,6234,1,5623,1,4562,1,3,
a(7)=39: 1234567,1,23456,1,72345,1,67234,1,56723,1,45672,1,3,
a(8)=52: 12345678,1,234567,1,823456,1,782345,1,678234,1,567823,1,456782,1,3,
a(9)=67: 123456789,1,2345678,1,9234567,1,8923456,1,7892345,1,6789234,1,5678923,1,4567892,1,3,

A180632       
a(1)=1: 1,
a(2)=3: 1,2,1,
a(3)=9: 1231,2,1321,
a(4)=33: 1234123142312431,2,1342132413214321,
a(5)=153: OEIS没有a(5)=153这串数,好心的网友!能补充一下?谢谢!
OEIS没有a(5)=153这串数,好心的网友!能补充一下?谢谢!

还找这么一串数—— 后面的都要有, 可以不计顺序但要连在一起。
a(1)=1: 1,——{1},
a(2)=2: 12,——{1},{2},{12},
a(3)=4: 1231,——{1},{2},{3},{12},{13},{23},{123},
a(4)=8: 12314234——{1},{2},{3},{4},{12},{13},{14},{23},{24},{34},{123},{124},{134},{234},{1234},
a(5)=17: 12314234512531245——{1},{2},{3},{4},{5},{12},{13},{14},{15},{23},{24},{25},{34},{35},{45},{123},{124},{125}{134},{135},{145},{234},{235},{245},{345},{1234},{1235},{1245},{1345},{2345},{12345},
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2024-6-23 19:33:44 | 显示全部楼层
{1, 2, 4, 5, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 63}    可以有通项吗?
  1. tmp = 1; Table[tmp = Floor[n+ Sqrt[tmp]], {n, 0, 42}]
复制代码
   
1, 2, 5, 11, 19, 29, 41, 55, 71, 89, 109, 131, 155, 181, 209, 239, 271, 305, 341, 379, 419, 461, 505, 551, 599, 649, 701, 755, 811, 869, 929, 991, 1055, 1121, 1189, 1259, 1331, 1405, 1481, 1559, 1639}    可以有通项吗?
  1. tmp = 1; Table[tmp = Floor[n^2 + Sqrt[tmp]], {n, 0, 42}]
复制代码
  
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2024-7-1 08:47:33 | 显示全部楼层
每个{ }都是三角形。
a(1)=01, {1,1,1},
a(2)=03, {1,1,1},{1,2,2},{2,2,2},
a(3)=07, {1,1,1},{1,2,2},{1,3,3},{2,2,2},{2,2,3},{2,3,3},{3,3,3},
a(4)=13, {1,1,1},{1,2,2},{1,3,3},{1,4,4},{2,2,2},{2,2,3},{2,3,3},{2,3,4},{2,4,4},{3,3,3},{3,3,4},{3,4,4},{4,4,4},
a(5)=22, {1,1,1},{1,2,2},{1,3,3},{1,4,4},{1,5,5},{2,2,2},{2,2,3},{2,3,3},{2,3,4},{2,4,4},{2,4,5},{2,5,5},{3,3,3},{3,3,4},{3,3,5},{3,4,4},{3,4,5},{3,5,5},{4,4,4},{4,4,5},{4,5,5},{5,5,5},
a(6)=34=22+12,{1,6,6},{2,5,6},{2,6,6},{3,4,6},{3,5,6},{3,6,6},{4,4,6},{4,5,6},{4,6,6},{5,5,6},{5,6,6},{6,6,6},
a(7)=50=34+16,{1,7,7},{2,6,7},{2,7,7},{3,5,7},{3,6,7},{3,7,7},{4,4,7},{4,5,7},{4,6,7},{4,7,7},{5,5,7},{5,6,7},{5,7,7},{6,6,7},{6,7,7},{7,7,7},
a(8)=70=50+20,{1,8,8},{2,7,8},{2,8,8},{3,6,8},{3,7,8},{3,8,8},{4,5,8},{4,6,8},{4,7,8},{4,8,8},{5,5,8},{5,6,8},{5,7,8},{5,8,8},{6,6,8},{6,7,8},{6,8,8},{7,7,8},{7,8,8},{8,8,8},
a(9)=95=70+25,{1,9,9},{2,8,9},{2,9,9},{3,7,9},{3,8,9},{3,9,9},{4,6,9},{4,7,9},{4,8,9},{4,9,9},{5,5,9},{5,6,9},{5,7,9},{5,8,9},{5,9,9},{6,6,9},{6,7,9},{6,8,9},{6,9,9},{7,7,9},{7,8,9},{7,9,9},{8,8,9},{8,9,9},{9,9,9},
......

1, 3, 7, 13, 22, 34, 50, 70, 95, 125, 161, 203, 252, 308, 372, 444, 525, 615, 715, 825, 946, 1078, 1222, 1378, 1547, 1729, 1925,
2135, 2360, 2600, 2856, 3128, 3417, 3723, 4047, 4389, 4750, 5130, 5530, 5950, 6391, 6853, 7337, 7843, 8372, 8924, 9500, 10100, ......
  1. Table[(n (n + 2) (2 n - 1) - 3 Mod[n, 2])/24, {n, 1, 49}]
复制代码

A002623—— 2024年3月25日
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2024-7-1 10:46:37 | 显示全部楼层
每个{ }都是三角形。
a(1)=00,
a(2)=00,
a(3)=00,
a(4)=01, {2,3,4},
a(5)=02, {2,4,5},{3,4,5},
a(6)=04, {2,5,6},{3,4,6},{3,5,6},{4,5,6},
a(7)=06, {2,6,7},{3,5,7},{3,6,7},{4,5,7},{4,6,7},{5,6,7},
a(8)=09, {2,7,8},{3,6,8},{3,7,8},{4,5,8},{4,6,8},{4,7,8},{5,6,8},{5,7,8},{6,7,8},
a(9)=12, {2,8,9},{3,7,9},{3,8,9},{4,6,9},{4,7,9},{4,8,9},{5,6,9},{5,7,9},{5,8,9},{6,7,9},{6,8,9},{7,8,9},
a(0)=16, {2,9,0},{3,8,0},{3,9,0},{4,7,0},{4,8,0},{4,9,0},{5,6,0},{5,7,0},{5,8,0},{5,9,0},{6,7,0},{6,8,0},{6,9,0},{7,8,0},{7,9,0},{8,9,0},
a(1)=20, {2,0,1},{3,9,1},{3,0,1},{4,8,1},{4,9,1},{4,0,1},{5,7,1},{5,8,1},{5,9,1},{5,0,1},{6,7,1},{6,8,1},{6,9,1},{6,0,1},{7,8,1},{7,9,1},{7,0,1},{8,9,1},{8,0,1},{9,0,1},
a(1)=25, {2,1,2},{3,0,2},{3,1,2},{4,9,2},{4,0,2},{4,1,2},{5,8,2},{5,9,2},{5,0,2},{5,1,2},{6,7,2},{6,8,2},{6,9,2},{6,0,2},{6,1,2},{7,8,2},{7,9,2},{7,0,2},{7,1,2},{8,9,2},{8,0,2},{8,1,2},{9,0,2},{9,1,2},{0,1,2},
......

{0, 0, 0, 1, 2, 4, 6, 9, 12, 16, 20, 25, 30, 36, 42, 49, 56, 64, 72, 81, 90, 100, 110, 121, 132, 144, 156, 169, 182, 196, 210, 225, 240, 256, 272, 289, 306, 324, 342, 361, 380, 400, 420, 441, 462, 484, 506, 529, 552, 576, 600, 625}
  1. Table[(n^2 - Mod[n, 2])/4, {n, 0, 50}]
复制代码

1, 3, 7, 13, 22, 34, 50, 70, 95, 125, 161, 203, 252, 308, 372, 444, 525, 615, 715, 825, 946, 1078, 1222, 1378, 1547, 1729, 1925, 2135, 2360, 2600, 2856, 3128, 3417, 3723, 4047, 4389, 4750, 5130, 5530, 5950, 6391, 6853, 7337, 7843, 8372,
  1. Table[(n (n + 2) (2 n - 1) - 3 Mod[n, 2])/24, {n, 1, 49}]
复制代码
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2024-7-15 10:39:40 | 显示全部楼层
northwolves 发表于 2024-5-30 12:06
n=1-200的解的情况:{0,20,17,15,8,18,4,11,5,13,1,22,2,10,13,4,1,15,1,15,9,6,0,17,3,0,1,8,0,24,0,1,6,2 ...

有这样一串数:{7, 11, 13, 14, 19, 21, 22, 25, 26, 28, 35, 37, 38, 41, 42, 44, 49, 50, 52, 56, 67, 69, 70, 73, 74, 76, 81, 82, 84, 88, 97, 98, 100, 104, 112, 131, 133, 134, 137, 138, 140, 145, 146, 148, 152, 161, 162, 164, 168, 176}
  1. Select[Range[180], Count[IntegerDigits[#, 2], 1] == 3 &]
复制代码

想给她加个序号,根据序号把对应那个数拉出来。谢谢!
a(1)=7,
a(2)=11,
a(3)=13,
a(4)=14,
a(5)=19,
a(6)=21,
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2024-7-15 12:30:30 | 显示全部楼层
王守恩 发表于 2024-7-15 10:39
有这样一串数:{7, 11, 13, 14, 19, 21, 22, 25, 26, 28, 35, 37, 38, 41, 42, 44, 49, 50, 52, 56, 67,  ...
  1. a=Select[Range[100],Count[IntegerDigits[#,2],1]==3&];Table[{k,a[[k]]},{k,Length@a}]
复制代码


{{1,7},{2,11},{3,13},{4,14},{5,19},{6,21},{7,22},{8,25},{9,26},{10,28},{11,35},{12,37},{13,38},{14,41},{15,42},{16,44},{17,49},{18,50},{19,52},{20,56},{21,67},{22,69},{23,70},{24,73},{25,74},{26,76},{27,81},{28,82},{29,84},{30,88},{31,97},{32,98},{33,100}}

评分

参与人数 1威望 +9 金币 +9 贡献 +9 经验 +9 鲜花 +9 收起 理由
王守恩 + 9 + 9 + 9 + 9 + 9 羡慕!

查看全部评分

毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

小黑屋|手机版|数学研发网 ( 苏ICP备07505100号 )

GMT+8, 2024-11-21 21:14 , Processed in 0.030802 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表