![]() |
![]() |
#1 |
Mar 2018
17×31 Posts |
![]()
4, 28 and 508 can be written as (2^n-4) for some n, but also as:
(3*s^2+1) for some s Are there other numbers N that can be written as (2^n-4) and as (3*s^2+1)? Last fiddled with by enzocreti on 2020-02-24 at 13:51 |
![]() |
![]() |
![]() |
#2 |
Jun 2003
10010111110002 Posts |
![]()
Don't forget 4
|
![]() |
![]() |
![]() |
#3 |
Mar 2018
17×31 Posts |
![]()
5, 29, 509 are primes
such that can be written as 3*n^2+2 and as 2^s-3 for some n and s do you believe they are infinite? |
![]() |
![]() |
![]() |
#4 | |
"Dylan"
Mar 2017
2·281 Posts |
![]() Quote:
Code:
For[n = 1, n <= 10000, n++, If[IntegerQ[Sqrt[1/3*(2^n - 5)]], Print[n, " ", 2^n - 4]]] Code:
2^n-4=3s^2+1 2^n-5=3s^2 s^2=1/3*(2^n-5) s = sqrt(1/3*(2^n-5)) Code:
3 (corresponding to 4) 5 (28) 9 (508) |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Prime numbers test primality - with proof written in invisible ink | Godzilla | Miscellaneous Math | 40 | 2018-10-17 00:11 |
any suitable sieve written in C or Python? | Shen | Information & Answers | 4 | 2017-01-05 04:49 |
Looking for British written American history on Kindle | jasong | Homework Help | 3 | 2015-01-30 21:36 |
ways to get rid of oil spills | science_man_88 | Puzzles | 9 | 2010-07-30 21:22 |
Math of LLR(written by Jean Penne) | TTn | 15k Search | 3 | 2006-01-06 00:08 |