login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A252281 For a prime p, denote by s(p,k) the odd part of the digital sum of p^k. Let k_1 be the smallest k such that s(p,k) is divisible by 11. Sequence lists primes p for which s(p,k_1)=11. 8

%I #12 Dec 07 2018 12:25:35

%S 2,5,7,13,23,29,31,43,47,53,59,79,83,97,137,139,173,191,227,239,241,

%T 257,263,281,317,331,337,349,353,359,373,383,421,439,443,449,461,463,

%U 467,479,499,509,523,547,557,563,569,593,599,607,619,641,643,653,659

%N For a prime p, denote by s(p,k) the odd part of the digital sum of p^k. Let k_1 be the smallest k such that s(p,k) is divisible by 11. Sequence lists primes p for which s(p,k_1)=11.

%C For s(p,k_1)=5 and s(p,k_1)=7 see A251964 and A252280 respectively.

%t s[p_, k_] := Module[{s = Total[IntegerDigits[p^k]]}, s/2^IntegerExponent[s, 2]]; f11[p_] := Module[{k = 1}, While[! Divisible[s[p, k], 11], k++]; k]; ok11Q[p_] := s[p, f11[p]] == 11; Select[Range[1000], PrimeQ[#] && ok11Q[#] &] (* _Amiram Eldar_, Dec 07 2018 *)

%o (PARI) s(p,k) = my(s=sumdigits(p^k)); s >> valuation(s, 2);

%o f11(p) = my(k=1); while(s(p,k) % 11, k++); k;

%o isok11(p) = s(p, f11(p)) == 11;

%o lista11(nn) = forprime(p=2, nn, if (isok11(p), print1(p, ", "))); \\ _Michel Marcus_, Dec 07 2018

%Y Cf. A221858, A225039, A225093, A251964, A252280.

%K nonn,base

%O 1,1

%A _Vladimir Shevelev_ and _Peter J. C. Moses_, Dec 16 2014

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 14:51 EDT 2024. Contains 371749 sequences. (Running on oeis4.)