A321082 Approximations up to 2^n for 2-adic integer log_(-3)(5).
0, 1, 3, 3, 11, 11, 11, 11, 11, 267, 267, 1291, 3339, 7435, 15627, 15627, 15627, 15627, 15627, 15627, 539915, 539915, 539915, 4734219, 13122827, 29900043, 29900043, 97008907, 97008907, 365444363, 365444363, 1439186187, 3586669835, 7881637131, 16471571723
Offset: 2
Keywords
Examples
The only number in the range [0, 2^(n-2) - 1] for n = 2 is 0, so a(2) = 0. (-3)^a(2) - 5 = -4 which is not divisible by 8, so a(3) = a(2) + 2^0 = 1. (-3)^a(3) - 5 = -8 which is not divisible by 16, so a(4) = a(3) + 2^1 = 3. (-3)^a(4) - 5 = -32 which is divisible by 32 but not 64, so a(5) = a(4) = 3, a(6) = a(5) + 2^3 = 11. (-3)^a(6) - 5 = -177152 which is divisible by 128, 256, 512, 1024 but not 2048, so a(7) = a(8) = a(9) = a(10) = a(6) = 11, a(11) = a(10) + 2^8 = 267.
Links
- Jianing Song, Table of n, a(n) for n = 2..1000
- Wikipedia, p-adic number
Programs
-
PARI
b(n) = {my(v=vector(n)); v[2]=0; for(n=3, n, v[n] = v[n-1] + if(Mod(-3,2^n)^v[n-1] - 5==0, 0, 2^(n-3))); v} a(n) = b(n)[n]
-
PARI
a(n)={if(n<3, 0, truncate(log(5 + O(2^n))/log(-3 + O(2^n))))} \\ Program provided by Andrew Howroyd
Comments